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
129129 : HFActionEvent::endType();
130130
131131 // 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());
135133 qApp->sendEvent(qApp, &actionEvent);
136134 }
137135