]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Use X button as backspace
authorLockl00p <97256723+Lockl00p@users.noreply.github.com>
Fri, 24 May 2024 01:07:34 +0000 (20:07 -0500)
committerLockl00p <97256723+Lockl00p@users.noreply.github.com>
Fri, 24 May 2024 01:07:34 +0000 (20:07 -0500)
To allow the user to clear a binding

vid_sdl.c

index 21957a29cbe60de6d15efdf51a46b9d16301cf76..fc580002f43f32bfca7d776426e814cbf57a79a9 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1148,6 +1148,11 @@ void Sys_SDL_HandleEvents(void)
                                        Key_Event( K_ESCAPE, 0, true );
                                        Key_Event( K_ESCAPE, 0, false );
                                }
+                               else if(event.jbutton.button == 2){
+                                       Key_Event( K_BACKSPACE, 0, true );
+                                       Key_Event( K_BACKSPACE, 0, false );
+                               }
+                               
                                break;
                        #endif
                        case SDL_JOYBUTTONUP: