Showing the changes to interface/src/scripting/JoystickScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -129,7 +129,8 @@ void JoystickScriptingInterface::update() { · 128 unmodified lines | |||
| 129 | : HFActionEvent::endType(); | 129 | : HFActionEvent::endType(); |
| 130 | 130 | ||
| 131 | // global action events fire in the center of the screen | 131 | // global action events fire in the center of the screen |
| 132 | HFActionEvent actionEvent(actionType, Application::getInstance()->getCamera()->getPickRay()); | 132 | HFActionEvent actionEvent(actionType, |
| 133 | Application::getInstance()->getViewFrustum()->computePickRay(0.5f, 0.5f)); | ||
| 133 | qApp->sendEvent(qApp, &actionEvent); | 134 | qApp->sendEvent(qApp, &actionEvent); |
| 134 | } | 135 | } |
| 135 | 136 | ||