|
From: | David Thompson |
Subject: | (Guile-SDL) Feature request: Return integer value for keysym in procedure event:key:keysym:sym |
Date: | Mon, 24 Jun 2013 22:40:01 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
I'm writing an input module for a game library and I'm wrapping up the keycodes into their own enumeration with a macro like so:
(define-enumeration keycode (backspace 8) (tab 9) (clear 12) (return 13) (pause 19) (escape 27) (space 32) (exclaim 33) (quotedbl 34) (hash 35) (dollar 36) (ampersand 38) (quote 39) (leftparen 40) (rightparen 41) (asterisk 42) (plus 43) (comma 44) (minus 45) (period 46) (slash 47) (0 48) (1 49) (2 50) (3 51) (4 52) (5 53) (6 54) (7 55) (8 56) (9 57) ...)Unfortunately, this doesn't work because there's no way to get the keycode as integer. I can see how returning a symbol is nice, but it would be also be nice to not hide the integer value underneath.
Thoughts? - Dave
[Prev in Thread] | Current Thread | [Next in Thread] |