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,7 +245,8 @@ namespace skyline::input {
if (!connectionState.connected)
return;
WriteNextEntry(*controllerInfo, controllerState);
if (controllerInfo)
WriteNextEntry(*controllerInfo, controllerState);
WriteNextEntry(section.defaultController, defaultState);
globalTimestamp++;