I added a FPS Camera, but I want to control it with WSAD. The problem is that I'm programming with Delphi and NOT with C++. I made a PSKeymap, but it dosen't run with more than 2 actions.
Here is my code:
- cpp Code: Select all
var Camera: ICameraSceneNode;
Steuerung: array[1..4] of PSKeyMap;
[...]
Steuerung[1].Action:=EKA_MOVE_FORWARD;
Steuerung[1].KeyCode:=KEY_KEY_W;
Steuerung[2].Action:=EKA_MOVE_BACKWARD;
Steuerung[2].KeyCode:=KEY_KEY_S;
Steuerung[3].Action:=EKA_STRAFE_LEFT;
Steuerung[3].KeyCode:=KEY_KEY_A;
Steuerung[4].Action:=EKA_STRAFE_RIGHT;
Steuerung[4].KeyCode:=KEY_KEY_D;
[...]
Camera:=smgr.addCameraSceneNodeFPS(nil,100,0.03,-1,Steuerung,4,True,3);
I'm new and I hope you can help me
