From: Lockl00p <97256723+Lockl00p@users.noreply.github.com> Date: Fri, 24 May 2024 01:07:34 +0000 (-0500) Subject: Use X button as backspace X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=406bfa609c99c443f380211407fdfc1450872089;p=xonotic%2Fdarkplaces.git Use X button as backspace To allow the user to clear a binding --- diff --git a/vid_sdl.c b/vid_sdl.c index 21957a29..fc580002 100644 --- 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: