From 406bfa609c99c443f380211407fdfc1450872089 Mon Sep 17 00:00:00 2001 From: Lockl00p <97256723+Lockl00p@users.noreply.github.com> Date: Thu, 23 May 2024 20:07:34 -0500 Subject: [PATCH] Use X button as backspace To allow the user to clear a binding --- vid_sdl.c | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.39.2