MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
348 stars 89 forks source link

Key are pressed twice #139

Closed titiger closed 7 years ago

titiger commented 7 years ago

For some people it looks like one key press is counted as 2 key presses. Hotkeys for switching on/off things always did on/off instantly for them.

titiger commented 7 years ago

It turned out this happened because for those which had numlock key off or somehting like this. In this case the key was handled two times by the game. One time it was handled as text input, one time as keydown event.

titiger commented 7 years ago

I hope this commit fixed it, can someone establish ?

https://github.com/MegaGlest/megaglest-source/commit/1dfe1b8b42839acf1e9ec6861b26224006c3900c

titiger commented 7 years ago

Looks like this is fixed now