Il faut jeter un coup d'oeil à l'API à cette adresse :
http://wiki.raydium.org/wiki/RaydiumApiReference
mais voici la partie qui t'interresse, je pense :
Code:
raydium_key_last will always contains the last key (normal or special)
pressed down. You'll find a explanation about normal and special keys above.
raydium_key[] hosts all special keys state. Currently, you must use
GLUT define's (Raydium aliases will come soon), limited to
following keys:
- GLUT_KEY_F1 to GLUT_KEY_F12
- GLUT_KEY_LEFT, GLUT_KEY_RIGHT, GLUT_KEY_UP, GLUT_KEY_DOWN
- GLUT_KEY_PAGE_UP, GLUT_KEY_PAGE_DOWN
- GLUT_KEY_HOME, GLUT_KEY_END, GLUT_KEY_INSERT
These are "special" keys: they have 2 states. released (0),
and pressed (non zero). It means you can do something
(move an object, turn on a light) UNTIL user stops to press the key.
"Normal" keys have a different behavior: you can do something IF user
press a key (exit from application if ESC is pressed, for example).
You'll have no information about key's release.
A normal key is sent through raydium_key_last, a special one through
raydium_key[] AND raydium_key_last.
bon courage