]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Menu: allow editing a user defined key bind with right mouse click
authorterencehill <piuntn@gmail.com>
Sat, 9 Jan 2021 14:50:44 +0000 (15:50 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 9 Jan 2021 14:50:44 +0000 (15:50 +0100)
qcsrc/menu/xonotic/keybinder.qc

index f9b2be71cf770feb9efedcdc0be4de699f3d94aa..a0265c4e4b5a9060891073e8a60c4f4a245de223 100644 (file)
@@ -391,6 +391,9 @@ float XonoticKeyBinder_keyDown(entity me, int key, bool ascii, float shift)
                case K_BACKSPACE:
                        KeyBinder_Bind_Clear(me, me);
                        break;
+               case K_MOUSE2:
+                       KeyBinder_Bind_Edit(me, me);
+                       break;
                default:
                        r = SUPER(XonoticKeyBinder).keyDown(me, key, ascii, shift);
                        break;