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

GetKey ignores [Shift] (and AltGr) #13

benkeks opened this Issue Feb 3, 2019 · 3 comments


None yet
2 participants
Copy link

benkeks commented Feb 3, 2019

If I run help/commands/2d_examples/ with the last version of the original Blitz3D, it takes into account whether modifier keys are pressed. For instance, pressing [A] yields 97 (lower-case a), and pressing [Shift]+[A] returns 65 (upper-case A). Compiling the same source with Blitz3D-NG for Windows, both [A] and [Shift]+[A] lead to 97 as output. This seems not to be intended; and as I don't know the users' keyboard layouts, there also is no easy way to implement the modifier key logic manually from within the BB source.


This comment has been minimized.

Copy link

benkeks commented Feb 4, 2019

(Re-reported by playing a game that I compiled with Blitz3D-NG.)


This comment has been minimized.

Copy link

kfprimm commented Feb 11, 2019

Hey, thanks for the bug report. I can take a look at this in the next couple of days.

Can you produce a simple code example that demonstrates the problem and paste it here? That will help be address the issue much more quickly.


This comment has been minimized.

Copy link

benkeks commented Feb 11, 2019

To reproduce the problem, user input is necessary. Example code derived from help/commands/2d_examples/

Print "Please press [Shift] and [A] on your keyboard! ..."

While Not value
value = GetKey()

Print "GetKey() returned value: " + value + " (which is '" + Chr(value) + "'). (Should return: 65)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment