Code: Select all
keymap[4].Action = irr::EKA_MOVE_FORWARD;
keymap[4].KeyCode = irr::KEY_UP;
keymap[6].Action = irr::EKA_STRAFE_LEFT;
keymap[6].KeyCode = irr::KEY_LEFT;
keymap[8].Action = irr::EKA_JUMP_UP;
keymap[8].KeyCode = irr::KEY_SPACE;
mygame->Camera = mygame->Device->getSceneManager()->addCameraSceneNodeFPS(0,100,0.5,-1,keymap,11,false,5,false);
between class OnEvent and keymap,but how to solve it?