v3.0.2: fixed 'none' not being considered a controller key

this created issues when with contrlller controller button binding configurations, where 'none' effectively couldn't be assigned to an action by the user
This commit is contained in:
Evan Debenham
2025-03-13 17:44:15 -04:00
parent e9739dcc20
commit c0becf809e
4 changed files with 15 additions and 4 deletions

View File

@@ -246,6 +246,10 @@ public class ControllerHandler implements ControllerListener {
}
public static boolean icControllerKey(int keyCode){
if (keyCode == 0){
return true;
}
if (keyCode >= Input.Keys.BUTTON_A
&& keyCode <= Input.Keys.BUTTON_MODE){
return true;

View File

@@ -82,4 +82,8 @@ public class KeyEvent {
}
keyEvents.clear();
}
public static boolean isKeyboardKey(int keyCode){
return keyCode == 0 || !ControllerHandler.icControllerKey(keyCode);
}
}