forked from Clones/Controlify
fix many crashes
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user