SDL/src
Sam Lantinga 31851a50d2 Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling
It turns out that when you enable raw input and then process Windows messages, you'll get the currently pending input in GetRawInputBuffer(), and you'll get any new input that occurs while processing messages as WM_INPUT.

The fix for this is to create a dedicated thread to handle raw input and only use GetRawInputBuffer() in that thread. A nice side effect of this is that we'll get mouse input at the lowest latency possible, but raw mouse events will now occur on a separate thread, outside of the normal event loop processing.

Improved fix for https://github.com/libsdl-org/SDL/issues/8756
2024-01-03 02:20:23 -08:00
..
atomic Updated copyright for 2024 2024-01-01 13:15:26 -08:00
audio Updated copyright for 2024 2024-01-01 13:15:26 -08:00
core Updated copyright for 2024 2024-01-01 13:15:26 -08:00
cpuinfo Updated copyright for 2024 2024-01-01 13:15:26 -08:00
dynapi Updated copyright for 2024 2024-01-01 13:15:26 -08:00
events Fixed warning: missing field 'window' initializer [-Wmissing-field-initializers] 2024-01-01 14:55:42 -08:00
file Updated copyright for 2024 2024-01-01 13:15:26 -08:00
filesystem Updated copyright for 2024 2024-01-01 13:15:26 -08:00
haptic Updated copyright for 2024 2024-01-01 13:15:26 -08:00
hidapi Updated copyright for 2024 2024-01-01 13:15:26 -08:00
joystick Add basic rumble support to Steam Deck 2024-01-01 21:46:38 -08:00
libm Updated copyright for 2024 2024-01-01 13:15:26 -08:00
loadso Updated copyright for 2024 2024-01-01 13:15:26 -08:00
locale Updated copyright for 2024 2024-01-01 13:15:26 -08:00
main Updated copyright for 2024 2024-01-01 13:15:26 -08:00
misc Updated copyright for 2024 2024-01-01 13:15:26 -08:00
power Updated copyright for 2024 2024-01-01 13:15:26 -08:00
render Updated copyright for 2024 2024-01-01 13:15:26 -08:00
sensor Updated copyright for 2024 2024-01-01 13:15:26 -08:00
stdlib Updated copyright for 2024 2024-01-01 13:15:26 -08:00
test Updated copyright for 2024 2024-01-01 13:15:26 -08:00
thread Updated copyright for 2024 2024-01-01 13:15:26 -08:00
timer Updated copyright for 2024 2024-01-01 13:15:26 -08:00
video Fixed dropping raw input because of mixing GetRawInputBuffer() and WM_INPUT handling 2024-01-03 02:20:23 -08:00
SDL.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_assert.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_assert_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_error.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_error_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_guid.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_hashtable.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_hashtable.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_hints.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_hints_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_internal.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_list.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_list.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_log.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_log_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_properties.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_properties_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_utils.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_utils_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00