Ok!
What about this idea:
Raydium has command line option: "--keyset" (--keyset would bring open a menu with three little boxes, resembling the "WASD/ZQSD" key pattern, similer to an arrow key look..)
then you could click one, say the "up" key (which on english keyboard is W, french Z(?))
and then press whatever the actual key may be, for instance I would press W, but if I had french keyboard I would press Z(?)
raydium would then set the "WASD/ZQSD" "foward" key to whatever I pressed.
now question is.. is my idea feasible?
doing it that way would allow support for WASD/ZQSD keys... and future support for other keys possibly, and you could "set" them to whatever they really are on your keyboard.
(I could even, set my "enter" key to the "WASD/ZQSD" "foward" key, if I wanted..)
can MyGlut read hardware at that level? am I dreaming?
Xfennec wrote:
Hi,
This is a real issue, as reported quite a few times now. Raydium is currently "faking" GLUT (with MyGlut), including its drawbacks, so it's unable to report status (up/down) for anything else than special keys, as you've seen.
It's very hard to include WASD controls directly into the engine, since many keyboard layouts are different on this point (here, on a french keyboard, it's ZQSD) ... It would require some sort of big "table" in Raydium with all known keyboard layouts and some sort of auto-detection. Almost impossible, I think.
Another option would be to report all keys in raydium_keys[] array, special or not. Applications should then deal with this giant array, full of strange keycodes
It would be a real trouble, I think, since it would probably require to code a "key mapping configuration screen" in every application, so the final user can change its settings and use WASD style controls ...
Or perhaps can we provide such a configuration screen directly into the engine ...
If anyone have any idea on this subject, let me know, since I see all this as an important topic, but with no "easy solution".