summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorArthur <[email protected]>2024-04-15 23:09:20 +0200
committerGitHub <[email protected]>2024-04-15 23:09:20 +0200
commite42f9263b81e925d4a8023673c5983e83ae094f7 (patch)
treeefa69f0695033fa87e8d0b115c8faa2fa777cab5 /examples
parent4e37c8e370f9c3846dc1136047809ed5d8886a90 (diff)
downloadraylib-e42f9263b81e925d4a8023673c5983e83ae094f7.tar.gz
raylib-e42f9263b81e925d4a8023673c5983e83ae094f7.zip
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 <[email protected]>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions