How to check if key is un-pressed

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
BRPAZ

How to check if key is un-pressed

Post by BRPAZ »

Hey all,

How can you check if a key is NOT pressed? I know you do

Code: Select all

case(KEY_RIGHT):
 // code here
if a key is pressed, but how do you check if it isn't pressed?

Thanks
rincewind
Posts: 35
Joined: Thu Mar 25, 2004 5:28 pm
Location: Germany --> Bonn

Post by rincewind »

well, you could check which keys are pressed, and all other keys are unpressed (tertium non datur).
fretnoize
Posts: 43
Joined: Sun Feb 01, 2004 4:57 am
Location: Los Angeles

Post by fretnoize »

There's a great post about this on the How To forum



http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=808
Post Reply