mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +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
|
||||
Application* app = Application::getInstance();
|
||||
PickRay pickRay = app->getCamera()->computeViewPickRay(app->getTrueMouseX(),
|
||||
app->getTrueMouseY());
|
||||
PickRay pickRay = app->getCamera()->computePickRay(app->getTrueMouseX(),
|
||||
app->getTrueMouseY());
|
||||
HFActionEvent actionEvent(actionType, pickRay);
|
||||
qApp->sendEvent(qApp, &actionEvent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue