You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
fix dpad left/right not showing correctly in project settings
This commit is contained in:
@@ -474,7 +474,7 @@ void ProjectSettings::_update_actions() {
|
|||||||
case InputEvent::JOYSTICK_BUTTON: {
|
case InputEvent::JOYSTICK_BUTTON: {
|
||||||
|
|
||||||
String str = "Device "+itos(ie.device)+", Button "+itos(ie.joy_button.button_index);
|
String str = "Device "+itos(ie.device)+", Button "+itos(ie.joy_button.button_index);
|
||||||
if (ie.joy_button.button_index>=0 && ie.joy_button.button_index<14)
|
if (ie.joy_button.button_index>=0 && ie.joy_button.button_index<JOY_BUTTON_MAX)
|
||||||
str+=String()+" ("+_button_names[ie.joy_button.button_index]+").";
|
str+=String()+" ("+_button_names[ie.joy_button.button_index]+").";
|
||||||
else
|
else
|
||||||
str+=".";
|
str+=".";
|
||||||
|
|||||||
Reference in New Issue
Block a user