mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-27 01:44:15 +01:00
Only write npad controllerInfo entry on the HID thread if it is valid
This commit is contained in:
parent
b5446846f7
commit
a015fe753d
@ -245,7 +245,8 @@ namespace skyline::input {
|
||||
if (!connectionState.connected)
|
||||
return;
|
||||
|
||||
WriteNextEntry(*controllerInfo, controllerState);
|
||||
if (controllerInfo)
|
||||
WriteNextEntry(*controllerInfo, controllerState);
|
||||
WriteNextEntry(section.defaultController, defaultState);
|
||||
|
||||
globalTimestamp++;
|
||||
|
Loading…
Reference in New Issue
Block a user