Merge pull request #3940 from ZappoMan/master

fix joystick pick
This commit is contained in:
Brad Hefta-Gaub 2014-12-09 20:05:18 -08:00
commit 3e7f9ee1fe

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);
}