History

send a pick ray with HFActionEvent, not x,y

Stephen Birarda committed 12 years ago

Commit 8d6b0411 parent 17070257 files · +26 −21Browse files

Showing the changes to interface/src/scripting/JoystickScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

interface/src/scripting/JoystickScriptingInterface.cpp+1−3
@@ -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 screen131 // 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