I'm a frenchie guy so my english...
I have a little probleme with the fps camera,
- when the buttons of the mouse are released, i want to click the buttons, scrool the bars...
- when right button is pressed, i want to control my camera.
To do that i write :
Code: Select all
else if (event.EventType == EET_MOUSE_INPUT_EVENT )
{
switch(event.MouseInput.Event)
{
ICameraSceneNode* camera = device->getSceneManager()->getActiveCamera();
case EMIE_RMOUSE_PRESSED_DOWN :
if ( camera != 0)
{
camera->setInputReceiverEnabled(true);
device->getCursorControl()->setVisible(false);
}
break;
case EMIE_RMOUSE_LEFT_UP :
if (camera != 0)
{
camera->setInputReceiverEnabled(false);
device->getCursorControl()->setVisible(true);
}
break;
}
}
Please help
Thanks.