1
0
forked from Clones/Controlify

fix many crashes

This commit is contained in:
isXander
2023-04-21 16:43:34 +01:00
parent 996dd47cf4
commit 3c24bd4bb7
5 changed files with 24 additions and 12 deletions

View File

@ -40,6 +40,10 @@ public class ControllerHIDService {
}
public ControllerHIDInfo fetchType() {
if (disabled) {
return new ControllerHIDInfo(ControllerType.UNKNOWN, Optional.empty());
}
doScanOnThisThread();
Pair<HidDevice, HIDIdentifier> hid = unconsumedControllerHIDs.poll();