Is there a wrapper for the SKeyMap in Irrlicht.NET? I searched for 'SKeyMap' in the documentation and found nothing, but perhaps it is wrapped under another name or a similar functionality can be implemented in another manner?
-OR-
Should I just write my own code within the main game loop to retrieve user input and translate camera matrices?
Thanks in advance!
Question about controlling camera / movement
-
- Posts: 39
- Joined: Wed Oct 04, 2006 8:00 am
I had the same problem and solved it by using the "Irrlicht .NET CP"-wrapper instead. Probably not the solution you were looking for though...
http://irrlichtnetcp.sourceforge.net
http://irrlichtnetcp.sourceforge.net
Code: Select all
KeyMap myMap = new KeyMap();
myMap.AssignAction(KeyAction.MoveForward, KeyCode.Key_W);
myMap.AssignAction(KeyAction.MoveBackward, KeyCode.Key_S);
myMap.AssignAction(KeyAction.StrafeLeft, KeyCode.Key_A);
myMap.AssignAction(KeyAction.StrafeRight, KeyCode.Key_D);
CameraSceneNode cam = device.SceneManager.AddCameraSceneNodeFPS(null, 200, 200, false, myMap);