mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 14:59:14 +02:00
fix joystick pick
This commit is contained in:
parent
edb79ccbd9
commit
74a6fd5ca7
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ void JoystickScriptingInterface::update() {
|
||||||
|
|
||||||
// global action events fire in the center of the screen
|
// global action events fire in the center of the screen
|
||||||
Application* app = Application::getInstance();
|
Application* app = Application::getInstance();
|
||||||
PickRay pickRay = app->getCamera()->computeViewPickRay(app->getTrueMouseX(),
|
PickRay pickRay = app->getCamera()->computePickRay(app->getTrueMouseX(),
|
||||||
app->getTrueMouseY());
|
app->getTrueMouseY());
|
||||||
HFActionEvent actionEvent(actionType, pickRay);
|
HFActionEvent actionEvent(actionType, pickRay);
|
||||||
qApp->sendEvent(qApp, &actionEvent);
|
qApp->sendEvent(qApp, &actionEvent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue