Disable accelerometer as axis, fix some omissions in KeyMap (doesn't actually autoload all those maps yet)

This commit is contained in:
Henrik Rydgard committed 2013-08-17 13:41:29 +02:00
1 parent 8028ff7f12
commit 47ac6c02fc
3 files changed
+36 -1

No files matched your search

+4
View File
@@ -598,6 +598,10 @@ void NativeKey(const KeyInput &key) {
}
void NativeAxis(const AxisInput &key) {
if (key.axisId >= JOYSTICK_AXIS_ACCELEROMETER_X && key.axisId <= JOYSTICK_AXIS_ACCELEROMETER_Z) {
// Disable accelerometer as an axis for now.
return;
}
if (screenManager)
screenManager->axis(key);
}