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 | 129 | : HFActionEvent::endType(); |
| 130 | 130 | |
| 131 | 131 | // global action events fire in the center of the screen |
| 132 | − QPointF centerPoint = Application::getInstance()->getViewportCenter(); | |
| 133 | − HFActionEvent actionEvent(actionType, centerPoint); | |
| 134 | − | |
| 132 | + HFActionEvent actionEvent(actionType, Application::getInstance()->getCamera()->getPickRay()); | |
| 135 | 133 | qApp->sendEvent(qApp, &actionEvent); |
| 136 | 134 | } |
| 137 | 135 | |