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.
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Mon Dec 17, 2007 7:28 pm
EKEY_CODE::KEY_??
Which is the tilde (~) code?
P.S
I've searched the forum but a KEY_XXX was not found.
I'm referring to the key left to the '1' key - above the tab.
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Mon Dec 17, 2007 8:23 pm
First, that isn't the tilde key. It is the backquote key. You get a tilde if you press that key while holding shift, much like you get an @ when holding shift and pressing 2.
Second, can't you write a ten line event receiver to tell you the answer?
Travis
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Tue Dec 18, 2007 4:17 pm
I found that event.KeyInput.Key's value when pressing '`' is 192..
192=0xC0, now because none of the enum values is 0xC0 does that mean that there isn't a EKEY_CODE for it?
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Ivo Georgiev
Posts: 27 Joined: Wed Dec 12, 2007 7:05 pm
Post
by Ivo Georgiev » Tue Dec 18, 2007 5:24 pm
Here is a problem
192 is not the write key code for some keyboards...so I strongly recomend DO NOT use this key...the key code is different in the different BRANDS sometimes.
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Wed Dec 19, 2007 2:13 pm
So how can I use the '`' key if it has different ASCII code in different keyboards? (Which sounds weird by itself..)
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Wed Dec 19, 2007 5:12 pm
There is a field in the KeyInput member of the SEvent structure that is the ASCII character code.
Travis
MasterGod
Posts: 2061 Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:
Post
by MasterGod » Fri Dec 21, 2007 12:24 pm
vitek wrote: There is a field in the KeyInput member of the SEvent structure that is the ASCII character code.
Travis
Thanks! It has all the info I need!! Thanks vitek!
Oh and it's KEY_RETURN
EDIT: Or not.. ^^
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%