v1.2.0: added custom button names for playstation controllers

This commit is contained in:
Evan Debenham
2022-02-18 15:43:35 -05:00
parent e688979dac
commit 0d3d8d9c34
3 changed files with 67 additions and 20 deletions

View File

@@ -76,6 +76,10 @@ public class KeyBindings {
}
public static String getKeyName( int keyCode ){
if (ControllerHandler.customButtonName(keyCode) != null){
return ControllerHandler.customButtonName(keyCode);
}
if (keyCode == Input.Keys.UNKNOWN){
return "None";
} else if (keyCode == Input.Keys.PLUS){