1
0
forked from Clones/Controlify

small bits

This commit is contained in:
isXander
2023-02-21 22:28:08 +00:00
parent 75fa069a98
commit a40cd9a2e2
5 changed files with 206 additions and 190 deletions

View File

@ -34,6 +34,10 @@ public interface Controller<S extends ControllerState, C extends ControllerConfi
void updateState();
default boolean canBeUsed() {
return true;
}
Map<Integer, Controller<?, ?>> CONTROLLERS = new HashMap<>();
static Controller<?, ?> createOrGet(int joystickId, @Nullable HidDevice device) {