-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading key presses not working when CTRL key is held down #187
Comments
I've run some comparisons between SDL-1.2.15 and the latest sdl12-compat from github, and it appears when the CTRL key is pressed they keysym.unicode struct member isn't completed. sdl12-compat: |
Text events aren't sent when CTRL is pressed, causing applications that depend on it to ignore some keyboard commands. fixes libsdl-org#187
Text events aren't sent when CTRL is pressed, causing applications that depend on it to ignore some keyboard commands. fixes libsdl-org#187
My use case is the Matrix Brandy BASIC interpreter, which uses SDL 1.2 (I have a plan to port it, though not sure yet how to deal with the way it writes pixels directly to the framebuffer...). So far most is working, but keypresses involving the CTRL key are not picked up. This is easily demonstrated within Matrix Brandy, by issuing
PRINT GET
and pressing CTRL and any key, you should get that sequence ASCII code back, e.g. CTRL-Q should give 17. When run against the real SDL-1.2.15 this works perfectly, but against sdl12-compat no keypress is seen.
The text was updated successfully, but these errors were encountered: