Minor tweak

This commit is contained in:
Deve 2017-02-07 14:38:40 +01:00
parent 4852664143
commit 77ff387f6b

View File

@ -1180,12 +1180,12 @@ EventPropagation InputManager::input(const SEvent& event)
if (UserConfigParams::m_multitouch_accelerometer == 1) if (UserConfigParams::m_multitouch_accelerometer == 1)
{ {
button->axis_x = -event.AccelerometerEvent.X / 6.0f; button->axis_x = -event.AccelerometerEvent.X / 5.0f;
device->handleControls(button); device->handleControls(button);
} }
else if (UserConfigParams::m_multitouch_accelerometer == 2) else if (UserConfigParams::m_multitouch_accelerometer == 2)
{ {
button->axis_x = event.AccelerometerEvent.Y / 6.0f; button->axis_x = event.AccelerometerEvent.Y / 5.0f;
device->handleControls(button); device->handleControls(button);
} }
} }