DEADSOFTWARE

allow to bind joystick button zero in menu
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 5 Sep 2019 22:17:26 +0000 (01:17 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 5 Sep 2019 22:17:26 +0000 (01:17 +0300)
src/game/g_gui.pas

index a97ddeb77a720382a5da623077aca7e1a5a99ab9..6043a37e671b9e4f0547f90a7fc4c5db6a2883f5 100644 (file)
@@ -2483,7 +2483,7 @@ begin
           else if FIsQuery then
           begin
             case wParam of
-              IK_ENTER, IK_KPRETURN, VK_FIRSTKEY..VK_LASTKEY, JOY0_ATTACK, JOY1_ATTACK, JOY2_ATTACK, JOY3_ATTACK: // Not <Enter
+              IK_ENTER, IK_KPRETURN, VK_FIRSTKEY..VK_LASTKEY (*, JOY0_ATTACK, JOY1_ATTACK, JOY2_ATTACK, JOY3_ATTACK*): // Not <Enter
             else
               if e_KeyNames[wParam] <> '' then
                 FKey := wParam;
@@ -2651,7 +2651,7 @@ begin
           else if FIsQuery then
           begin
             case wParam of
-              IK_ENTER, IK_KPRETURN, VK_FIRSTKEY..VK_LASTKEY, JOY0_ATTACK, JOY1_ATTACK, JOY2_ATTACK, JOY3_ATTACK: // Not <Enter
+              IK_ENTER, IK_KPRETURN, VK_FIRSTKEY..VK_LASTKEY (*, JOY0_ATTACK, JOY1_ATTACK, JOY2_ATTACK, JOY3_ATTACK*): // Not <Enter
             else
               if e_KeyNames[wParam] <> '' then
               begin