Browse Source

fix dpad left/right not showing correctly in project settings

hondres 9 years ago
parent
commit
54d53e0a78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/editor/project_settings.cpp

+ 1 - 1
tools/editor/project_settings.cpp

@@ -474,7 +474,7 @@ void ProjectSettings::_update_actions() {
 				case InputEvent::JOYSTICK_BUTTON: {
 
 					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]+").";
 					else
 						str+=".";