History

fix joystick pick

ZappoMan committed 11 years ago

Commit 74a6fd51 parent edb79cc1 file · +2 −2Browse files

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

Unified · Split

interface/src/scripting/JoystickScriptingInterface.cpp+2−2
@@ -133,8 +133,8 @@ void JoystickScriptingInterface::update() { · 132 unmodified lines
133 133
134 // global action events fire in the center of the screen134 // global action events fire in the center of the screen
135 Application* app = Application::getInstance();135 Application* app = Application::getInstance();
136 PickRay pickRay = app->getCamera()->computeViewPickRay(app->getTrueMouseX(),136 PickRay pickRay = app->getCamera()->computePickRay(app->getTrueMouseX(),
137 app->getTrueMouseY());137 app->getTrueMouseY());
138 HFActionEvent actionEvent(actionType, pickRay);138 HFActionEvent actionEvent(actionType, pickRay);
139 qApp->sendEvent(qApp, &actionEvent);139 qApp->sendEvent(qApp, &actionEvent);
140 }140 }