Ok, I put this:
Code: Select all
printf(" key=%d char=%d \n", event.KeyInput.Key, event.KeyInput.Char);
into my Reciever to see what codes (if any) it returns.
and for
[ =
91 and for
] =
93
-their ASCII codes, and its ok.
Of corse still no response for ALT keys ( KEY_MENU / KEY_RMENU / KEY_LMENU )
it this way, and keys like SHIFT/ CONTROL wont work too!
printing their ASCII codes gives their numbers (for CONTROL=17 and SHIFT= 16)
But using like this:
Code: Select all
if (receiver.IsKeyDown(irr::KEY_SHIFT) )
//................. do something........
do nothing,
(no matter if: KEY_RSHIFT, KEY_LSHIFT or KEY_LCONTROL , KEY_RCONTROL etc... )
What have I noticed is, that this key:
\ +
| (its just left side from BACKSPACE) and called "
KEY_SEPARATE" (right?) wont work in Irrlicht too here.
What is interesting, its its ASCII code is....
92 !
It looks like, keys with ASCII codes: 91, 92 and 93 and SHIFT, CONTROL , ALT wont work for me in Irrlicht, all other keys (even so "exotic" like Pause/Break, ScrollLock , function-keys or Numpads...) are working properly.
As I said, forget this, its not very important to me (I can use
[ and
] and
\ through their ASCII codes , and ALTs... oh well...
-mike
PS.
my system (win XP/SP2) is German one but my keyboard is "interational" (without any national chars, no german chars, no english pound etc.) its standard QWERTY.
Besides Irrlicht was always everything ok. ( im not sure now, but under SDL was it ok too.)