irrlicht key events for tilde

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lion
Posts: 12
Joined: Wed Dec 10, 2008 1:34 pm

irrlicht key events for tilde

Post by lion »

Hello everybody. I have some problems with key events for key ~ (tilde). I had not found KEY_KEY_TILDE or something like this.

When i compile my application under windows XP (VS 5.0) and try to press ~, then i get

Code: Select all

 event.KeyInput.Key == 0xC0 
I tried to search irrlich documentation, but there are no EKEY_CODE for 0xC0.

Under linux (ubuntu 8.10) after pressing ~:

Code: Select all

 event.KeyInput.Key == 0 
I want to open console with this key and don't like to use F2 or F10 for this task.

Is there the way to solve this problem (both win and linux)?

PS sorry for my bed english
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

That key is a problem since it's subject to localisation issues.

I'd suggest that you check event.KeyInput.Char for '~' instead.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
lion
Posts: 12
Joined: Wed Dec 10, 2008 1:34 pm

Post by lion »

Yes. It works. It is not very comfortable, but works on linux. Thank you very match.
Post Reply