Make the nw mapper work for th einputs

This commit is contained in:
samcake 2015-05-03 17:34:39 -07:00
parent c9b296693c
commit d2e61dba05
2 changed files with 5 additions and 5 deletions

View file

@ -1538,7 +1538,7 @@ void Application::mouseReleaseEvent(QMouseEvent* event, unsigned int deviceID) {
return;
}
_keyboardMouseDevice.mousePressEvent(event);
_keyboardMouseDevice.mouseReleaseEvent(event);
if (activeWindow() == _window) {

View file

@ -339,10 +339,10 @@ void UserInputMapper::assignDefaulActionUnitScales() {
_actionUnitScales[LATERAL_RIGHT] = 1.0f; // 1m per unit
_actionUnitScales[VERTICAL_DOWN] = 1.0f; // 1m per unit
_actionUnitScales[VERTICAL_UP] = 1.0f; // 1m per unit
_actionUnitScales[YAW_LEFT] = glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[YAW_RIGHT] = glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[PITCH_DOWN] = glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[PITCH_UP] = glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[YAW_LEFT] = 1.0f;//glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[YAW_RIGHT] = 1.0f;//glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[PITCH_DOWN] = 1.0f;//glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[PITCH_UP] = 1.0f;//glm::radians<float>(1.0f); // 3 degree per unit
_actionUnitScales[BOOM_IN] = 1.0f; // 1m per unit
_actionUnitScales[BOOM_OUT] = 1.0f; // 1m per unit
}