SDL/src/events
diddily 1e492b2f6d Improve behavior of SDL_events_need_periodic_poll() and SDL_events_need_polling()
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.
2022-07-25 09:00:31 -07:00
..
blank_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
default_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
imKStoUCS.c wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h on-screen keyboard newline is reported as an Enter key 2022-07-01 09:17:30 -07:00
scancodes_darwin.h Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
scancodes_linux.h Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
scancodes_windows.h Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
scancodes_xfree86.h Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_clipboardevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_clipboardevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_events.c Improve behavior of SDL_events_need_periodic_poll() and SDL_events_need_polling() 2022-07-25 09:00:31 -07:00
SDL_events_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_gesture.c Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!) 2022-06-17 10:22:28 -07:00
SDL_gesture_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_keyboard.c Refactored code to send scancodes for an ASCII on-screen keyboard key 2022-06-29 17:26:09 -07:00
SDL_keyboard_c.h Exposed SDL_ResetKeyboard() as a public function 2022-07-11 09:49:00 -07:00
SDL_mouse.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_mouse_c.h Fixed warping back into the window when gaining focus with warp relative mode enabled 2022-05-18 10:10:51 -07:00
SDL_quit.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_touch.c Vita: add hint to select which touchpad generates mouse events 2022-03-28 08:36:32 -07:00
SDL_touch_c.h Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!) 2022-02-08 11:32:20 +01:00
SDL_windowevents.c hints: Added SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE. 2022-03-22 09:54:29 -04:00
SDL_windowevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00