Only write npad controllerInfo entry on the HID thread if it is valid

This commit is contained in:
Billy Laws 2022-10-09 13:04:03 +01:00
parent b5446846f7
commit a015fe753d

View File

@ -245,6 +245,7 @@ namespace skyline::input {
if (!connectionState.connected)
return;
if (controllerInfo)
WriteNextEntry(*controllerInfo, controllerState);
WriteNextEntry(section.defaultController, defaultState);