mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-11-23 06:05:16 +00:00
SDL_events_need_periodic_poll() and SDL_events_need_polling() are intended to allow the event loop to update joysticks and/or sensors if needed, however those systems only update when the SDL_update_joysticks and/or SDL_update_sensors variables are true. This change brings the behavior of these functions in line with if work will actually need to be performed. This change allows the hints for AUTO_UPDATE to influence the polling behavior of the event loop such that an app can choose to update joysticks/sensors itself and avoid the expense of constantly sleeping and waking the event loop. Additionally in makes these functions marginally faster in some situations by not searching the active events. |
||
|---|---|---|
| .. | ||
| blank_cursor.h | ||
| default_cursor.h | ||
| imKStoUCS.c | ||
| imKStoUCS.h | ||
| scancodes_ascii.h | ||
| scancodes_darwin.h | ||
| scancodes_linux.h | ||
| scancodes_windows.h | ||
| scancodes_xfree86.h | ||
| SDL_clipboardevents.c | ||
| SDL_clipboardevents_c.h | ||
| SDL_displayevents.c | ||
| SDL_displayevents_c.h | ||
| SDL_dropevents.c | ||
| SDL_dropevents_c.h | ||
| SDL_events.c | ||
| SDL_events_c.h | ||
| SDL_gesture.c | ||
| SDL_gesture_c.h | ||
| SDL_keyboard.c | ||
| SDL_keyboard_c.h | ||
| SDL_mouse.c | ||
| SDL_mouse_c.h | ||
| SDL_quit.c | ||
| SDL_touch.c | ||
| SDL_touch_c.h | ||
| SDL_windowevents.c | ||
| SDL_windowevents_c.h | ||