mouse keyboard input

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
Dodge
Posts: 9
Joined: Fri Aug 05, 2005 7:20 am

mouse keyboard input

Post by Dodge »

hello

i have two lil questions

1) how i can get the input of the keyboard for controlling a 2d sprite
eg.
w = move 10px up
a = move 10px right
s = move 10px left
s = move 10px down

can i use the same method like in Tutorial 4 (Movement)?


and the second question
2)how to know if the left/right mouse kes is pressed?


I hope some one can help
Dodge
Posts: 9
Joined: Fri Aug 05, 2005 7:20 am

Post by Dodge »

i belive i've found anything helpful :)

http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=45953#45953


but what does the funcions mean?

bool IsKeyDown(int index) == Key is down

bool IsKeyUpDown(int index) == ???

bool IsKeyDownUp(int index) == ???


I hope someone can help
Post Reply