fix joystick pick

This commit is contained in:
ZappoMan 2014-12-09 20:03:00 -08:00
parent edb79ccbd9
commit 74a6fd5ca7

View file

@ -133,8 +133,8 @@ void JoystickScriptingInterface::update() {
// global action events fire in the center of the screen
Application* app = Application::getInstance();
PickRay pickRay = app->getCamera()->computeViewPickRay(app->getTrueMouseX(),
app->getTrueMouseY());
PickRay pickRay = app->getCamera()->computePickRay(app->getTrueMouseX(),
app->getTrueMouseY());
HFActionEvent actionEvent(actionType, pickRay);
qApp->sendEvent(qApp, &actionEvent);
}