mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-03 18:14:16 +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)
|
if (!connectionState.connected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
WriteNextEntry(*controllerInfo, controllerState);
|
if (controllerInfo)
|
||||||
|
WriteNextEntry(*controllerInfo, controllerState);
|
||||||
WriteNextEntry(section.defaultController, defaultState);
|
WriteNextEntry(section.defaultController, defaultState);
|
||||||
|
|
||||||
globalTimestamp++;
|
globalTimestamp++;
|
||||||
|
Loading…
Reference in New Issue
Block a user