1
0
forked from Clones/Controlify

fix bugs:

fix reconnecting controllers are unidentified
fix some mod keybinds failing to register
fix crash with unmapped joysticks
This commit is contained in:
isXander
2023-05-02 12:30:34 +01:00
parent 4e076631a4
commit 681eabd90a
12 changed files with 57 additions and 10 deletions

View File

@ -48,6 +48,8 @@ public interface Controller<S extends ControllerState, C extends ControllerConfi
RumbleManager rumbleManager();
boolean canRumble();
Optional<ControllerHIDService.ControllerHIDInfo> hidInfo();
default boolean canBeUsed() {
return true;
}
@ -156,6 +158,11 @@ public interface Controller<S extends ControllerState, C extends ControllerConfi
return ControllerType.UNKNOWN;
}
@Override
public Optional<ControllerHIDService.ControllerHIDInfo> hidInfo() {
return Optional.empty();
}
@Override
public String name() {
return "DUMMY";