ivansafrin/Polycode — Issue #85: "Shift" key detected wrong on Windows now
Author: mcclure
Created: 2012-01-11 05:53:49+00:00
State: open

Made a windows build based on e089bf39d53f (with my patches and built using mingw). Tested it on mac. It worked great. Sent it to a windows tester. It worked BUT there was a problem with the shift key. I added a ScreenLabel and set the screenlabel to show the InputEvent::keyCode() and InputEvent::charCode for every key pressed (can provide example code). Everything seemed normal EXCEPT

- Lshift and Rshift returned keyCode 0, charCode 0. (on mac I got keycode 304 & 303, charCode 0)
- Alt apparently did not trigger any sort of event at all.

Dunno if alt is a problem, the lshift/rshift thing is a problem in the long term as "shift" is commonly used as a keyboard control and this bug would make shift presses impossible to detect. (My current project does not rely on being able to detect shift presses so I have no problem here.)