Handle controller up events even while binding inputs to avoid spamming the bind button

This commit is contained in:
Mr-Wiseguy
2025-04-29 21:46:18 -04:00
parent aef0bf50ea
commit 8cf381005e
2 changed files with 13 additions and 7 deletions
+4
View File
@@ -287,6 +287,10 @@ bool sdl_event_filter(void* userdata, SDL_Event* event) {
case SDL_EventType::SDL_DROPCOMPLETE:
recompui::drop_files(DropState.files_dropped);
break;
case SDL_EventType::SDL_CONTROLLERBUTTONUP:
// Always queue button up events to avoid missing them during binding.
recompui::queue_event(*event);
break;
default:
queue_if_enabled(event);
break;