raylib/src
Arthur e42f9263b8
Fix GetKeyPressed for PLATFORM_DESKTOP_SDL (#3869)
The key handling in PLATFORM_DESKTOP_SDL was faulty in two ways, which
led to GetKeyPressed returning incorrect data.

CORE.Input.Keyboard.keyPressedQueue was updated only on SDL_TEXTINPUT,
meaning only text characters were registered as a pressed key, but not
function keys (eg. tab, backspace...). Also on such event, both
CORE.Input.Keyboard.keyPressedQueue and
CORE.Input.Keyboard.charPressedQueue were assigned the key's
corresponding codepoint, when CORE.Input.Keyboard.keyPressedQueue
should get the raylib keycode instead.

CORE.Input.Keyboard.keyPressedQueue is now updated on SDL_KEYDOWN event
instead.

Co-authored-by: Arthur <hi@thenightwat.ch>
2024-04-15 23:09:20 +02:00
..
external Update cgltf.h 2024-04-07 09:47:28 +02:00
platforms Fix GetKeyPressed for PLATFORM_DESKTOP_SDL (#3869) 2024-04-15 23:09:20 +02:00
build.zig Fix FileNotFound: .../src/raylib.h (#3915) 2024-04-13 23:35:23 +02:00
CMakeLists.txt Remove trailing spaces 2024-04-02 09:38:06 +02:00
config.h Gamepad rumble support with SDL2 (#3819) 2024-02-24 16:47:27 +01:00
Makefile Fix GLFW runtime platform detection (#3863) 2024-03-14 16:54:39 +01:00
minshell.html ADDED: Open-graph image alt properties 2023-11-07 19:22:12 +01:00
raudio.c Reset music.ctxType if loading wasn't succesful (#3917) 2024-04-14 00:15:50 +02:00
raylib.dll.rc Remove TABS 2024-04-02 09:40:19 +02:00
raylib.dll.rc.data REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raylib.h Update raylib.h 2024-04-04 13:18:28 +02:00
raylib.ico Updated icon data 2018-09-26 16:02:42 +02:00
raylib.rc Remove TABS 2024-04-02 09:40:19 +02:00
raylib.rc.data REVIEWED: raylib 5.0-dev version for a future release 2023-10-18 00:33:05 +02:00
raymath.h Added missing interpolation types for GLTF animation channels (#3919) 2024-04-15 23:08:09 +02:00
rcamera.h Fix GetCameraRight (#3784) 2024-02-05 20:53:14 +01:00
rcore.c REVIEWED: GetScreenToWorldRayEx() 2024-04-03 20:10:15 +02:00
rgestures.h Update copyright to 2024 2024-01-02 20:58:12 +01:00
rglfw.c Fix GLFW runtime platform detection (#3863) 2024-03-14 16:54:39 +01:00
rlgl.h Changed RLGL_VERSION from "4.5" to "5.0 (#3914) 2024-04-13 23:33:21 +02:00
rmodels.c Added missing interpolation types for GLTF animation channels (#3919) 2024-04-15 23:08:09 +02:00
rshapes.c Review formatting 2024-02-29 18:50:44 +01:00
rtext.c Review formatting 2024-02-29 18:50:44 +01:00
rtextures.c [rtextures] Fix LoadImageFromScreen scaling (#3881) 2024-03-26 08:47:25 +01:00
shell.html Update shell.html 2023-11-08 19:34:38 +01:00
utils.c Remove trailing spaces 2024-04-02 09:38:06 +02:00
utils.h Update copyright to 2024 2024-01-02 20:58:12 +01:00