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
133133
134134 // global action events fire in the center of the screen
135135 Application* app = Application::getInstance();
136− PickRay pickRay = app->getCamera()->computeViewPickRay(app->getTrueMouseX(),
137− app->getTrueMouseY());
136+ PickRay pickRay = app->getCamera()->computePickRay(app->getTrueMouseX(),
137+ app->getTrueMouseY());
138138 HFActionEvent actionEvent(actionType, pickRay);
139139 qApp->sendEvent(qApp, &actionEvent);
140140 }