Code: Select all
SKeyMap keyMap[8];
keyMap[0].Action = EKA_MOVE_FORWARD;
keyMap[0].KeyCode = KEY_UP;
keyMap[1].Action = EKA_MOVE_FORWARD;
keyMap[1].KeyCode = KEY_KEY_W;
keyMap[2].Action = EKA_MOVE_BACKWARD;
keyMap[2].KeyCode = KEY_DOWN;
keyMap[3].Action = EKA_MOVE_BACKWARD;
keyMap[3].KeyCode = KEY_KEY_S;
keyMap[4].Action = EKA_STRAFE_LEFT;
keyMap[4].KeyCode = KEY_LEFT;
keyMap[5].Action = EKA_STRAFE_LEFT;
keyMap[5].KeyCode = KEY_KEY_A;
keyMap[6].Action = EKA_STRAFE_RIGHT;
keyMap[6].KeyCode = KEY_RIGHT;
keyMap[7].Action = EKA_STRAFE_RIGHT;
keyMap[7].KeyCode = KEY_KEY_D;
q3node = smgr->addCameraSceneNodeFPS(0, 100.0f, 300.0f, -1, keyMap ,8);
as a matter of fact, i just want to make input key from user, would u give me the code please? and i hope i'll work in turtorial 7.
thanks b4 = terima kasih sebelumnya (in indonesia)
just information, a few days ago, in aceh (tsunami that got more than 90.000 people) there in an earthquake, 8,7 ScaleRichter,(include nias) hope there isn't tsunami any more.
crying for aceh