Showing the changes to interface/src/scripting/JoystickScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -129,9 +129,7 @@ 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 | QPointF centerPoint = Application::getInstance()->getViewportCenter(); | 132 | HFActionEvent actionEvent(actionType, Application::getInstance()->getCamera()->getPickRay()); |
| 133 | HFActionEvent actionEvent(actionType, centerPoint); | ||
| 134 | |||
| 135 | qApp->sendEvent(qApp, &actionEvent); | 133 | qApp->sendEvent(qApp, &actionEvent); |
| 136 | } | 134 | } |
| 137 | 135 | ||