v1.2.0: made a few improvements to button tooltips

This commit is contained in:
Evan Debenham
2022-03-02 19:25:30 -05:00
parent 01051f1c17
commit d2f8d95f51
8 changed files with 70 additions and 9 deletions

View File

@@ -170,6 +170,18 @@ public class ControllerHandler implements ControllerListener {
return Input.Keys.UNKNOWN;
}
public static boolean icControllerKey(int keyCode){
if (keyCode >= Input.Keys.BUTTON_A && keyCode <= Input.Keys.BUTTON_MODE){
return true;
}
else if (keyCode >= Input.Keys.DPAD_UP && keyCode <= Input.Keys.DPAD_LEFT){
return true;
}
return false;
}
public static String customButtonName(int keyCode){
if (lastUsedType == ControllerType.PLAYSTATION){
if (keyCode == Input.Keys.BUTTON_A){