mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Zero value with SDL on key releases #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Use SDL
2. Release a key
3. Key::getValue will return zero

The expected behaviour is to get the same value as a key press event. The
bug is caused by the fact that SDLInput uses the unicode property of the
SDL_Event in order to get key information, and the unicode property is
always zero on key releases.

Original issue reported on code.google.com by olof.nae...@gmail.com on 2 Mar 2008 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 5 Mar 2008 at 7:57