Code: Select all
keyMap[8].Action = EKA_JUMP_UP;
keyMap[8].KeyCode = KEY_SPACE ;
Code: Select all
keyMap[8].KeyCode = EMIE_RMOUSE_LEFT_UP;
Code: Select all
keyMap[8].MouseEvent = EMIE_LMOUSE_LEFT_UP;
Code: Select all
keyMap[8].Action = EKA_JUMP_UP;
keyMap[8].KeyCode = KEY_SPACE ;
Code: Select all
keyMap[8].KeyCode = EMIE_RMOUSE_LEFT_UP;
Code: Select all
keyMap[8].MouseEvent = EMIE_LMOUSE_LEFT_UP;
aren't they for the mouse buttons ???KEY_LBUTTON
KEY_RBUTTON
KEY_MBUTTON
00013 KEY_LBUTTON = 0x01, // Left mouse button
00014 KEY_RBUTTON = 0x02, // Right mouse button
00015 KEY_CANCEL = 0x03, // Control-break processing
00016 KEY_MBUTTON = 0x04, // Middle mouse button (three-button mouse)
Code: Select all
camera->OnEvent(KEY_SPACE);
a short look at the api discovers that OnEvent doesn't take a key code like you did, but an event (SEvent) !!!Ivo Georgiev wrote:My camera instance is "camera"
The code I've tryed for calling the "space" button isBut I am a noob and I am getting something wrong againCode: Select all
camera->OnEvent(KEY_SPACE);
Code: Select all
SEvent keyEvent= {0};
keyEvent.EventType = EET_KEY_INPUT_EVENT;
keyEvent.KeyInput.Key = KEY_SPACE;
camera->OnEvent(keyEvent);