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:
@@ -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;
|
||||
|
||||
@@ -82,4 +82,8 @@ public class KeyEvent {
|
||||
}
|
||||
keyEvents.clear();
|
||||
}
|
||||
|
||||
public static boolean isKeyboardKey(int keyCode){
|
||||
return keyCode == 0 || !ControllerHandler.icControllerKey(keyCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user