|
Viewing 1 to 9 (9 Total) KeyboardEvent.keyCode shows wrong values on cpp (windows) |
|
|---|---|
ZaphodTotal Posts: 218
Joined: September 15, 2011
|
The following code shows what I mean. When I compile it to cpp on windows and press different key (for example "A" and "NUMPAD_ONE") it traces same keyCode values.
Tags:
Posted on December 15, 2011 at 3:42 AM
|
ChmanTotal Posts: 51
Joined: September 12, 2011
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)I've noticed this as well, but I've made myself a small "Key" singleton so I don't have to worry about it anymore.
Posted on December 15, 2011 at 2:43 PM
|
ZaphodTotal Posts: 218
Joined: September 15, 2011
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)Thank you very much for this workaround. I'll steal it to my flixel port
Posted on December 15, 2011 at 2:48 PM
|
ahollaTotal Posts: 31
Joined: November 03, 2011
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)HI, I have also just run into this. I really think NME should standardise this. Flash and JS targets are the same but CPP is different. I think NME should handle the conversion of the FLASH keycodes to the CPP keycodes unless there is something I am missing.
Posted on January 12, 2012 at 5:25 AM
|
singmajestyTotal Posts: 2141
Joined: August 25, 2011
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)I just dug into this, and found the cause of the difference. It seemed obvious when seeing the Key class, but I've applied the actual fix to my KeyBinding library. I apologize that it was not binding properly for alphabetical keys in C++ and Neko.
Posted on January 12, 2012 at 10:43 AM
|
OhiraKyouTotal Posts: 3
Joined: August 19, 2012
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)Unfortunately, this issue is still relevant, a year later. I absolutely need numpad and alphabet key support in Windows. Has a year really yielded no solution? Key class: https://github.com/MattTuttle/HaxePunk/blob/master/src/com/haxepunk/utils/Key.hx
Posted on August 19, 2012 at 8:41 PM
|
cambiataTotal Posts: 22
Joined: November 04, 2011
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)Here's what I've come up with. If neko or cpp targets, it corrects the keyCodes for keys a-z, while the numpad keys remain unaltered. Maybe useful to someone:
Posted on September 06, 2012 at 1:15 AM
|
dcfedorTotal Posts: 2
Joined: November 09, 2012
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)Hey Guys,
Posted on November 09, 2012 at 12:18 PM
|
dcfedorTotal Posts: 2
Joined: November 09, 2012
|
Re: KeyboardEvent.keyCode shows wrong values on cpp (windows)Hey Guys,
Posted on November 13, 2012 at 12:57 PM
|
