Key binding

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
Acki

Key binding

Post by Acki »

Hi,
I'm new with Irrlicht and make my first steps with it... ;)

Now, is it possible to change the default keys for the FPS-camera mode (from arrow keys to maybe "w", "s", "a" and "d" ???

Well, I know I can write a function on my own, but if I don't need it... ;)


CU
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

With Irrlicht 0.4.1 you can.

Stright from the docs:

Code: Select all

virtual ICameraSceneNode* irr::scene::ISceneManager::addCameraSceneNodeFPS  (  ISceneNode *    parent = 0,  
  f32    rotateSpeed = 100.0f,  
  f32    moveSpeed = 500.0f,  
  s32    id = -1,  
  SKeyMap *    keyMapArray = 0,  
  s32    keyMapSize = 0 
 )  [pure virtual] 
Acki

Post by Acki »

Great, it works !!! :)

Thank you !!!!!!!
Post Reply