Default Movement Keys

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
invid
Posts: 7
Joined: Sat Mar 05, 2005 10:14 am
Contact:

Default Movement Keys

Post by invid »

I am looking at the example.net project, working in c# - Is there any way I can change the default movement keys from the Arrow keys to like "w"=forward, "a"=left, "d"=right, "x"=back or something similar?

I have seen a couple of c++ keyinput examples, but I can't get the c# equivalent.


Thanks!!!
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Have a look in the Irrlicht's help file for addCameraSceneNodeFPS
you can set a key and a alternative key for each moving direction...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
invid
Posts: 7
Joined: Sat Mar 05, 2005 10:14 am
Contact:

Post by invid »

Thanks for the help. I have scoured the help system and the closest I have found is the addCameraSceneNodeFPS articles in the .NET help, but no examples or references to events and setting the camera's movement. Are there any c# samples/tutorials available that address this or other 'new to Irrlicht' issues?


Thanks Again!!!
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

in plain cpp it is

Code: Select all

keyMap[0].Action = EKA_MOVE_FORWARD;
keyMap[0].KeyCode = KEY_KEY_W;
aso for the rest u wnat to remap

if its valid for -net ?? dont know..
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Post Reply