Simplify tilt, step 1

This commit is contained in:
Henrik Rydgård committed 2023-02-16 10:33:47 +01:00
1 parent 99b2349d6b
commit a288c59841
3 files changed
+13 -20

No files matched your search

+1 -3
View File
@@ -1404,11 +1404,9 @@ void NativeAxis(const AxisInput &axis) {
// see [http://developer.android.com/guide/topics/sensors/sensors_overview.html] for details
bool landscape = dp_yres < dp_xres;
// now transform out current tilt to the calibrated coordinate system
Tilt trueTilt = GenTilt(landscape, tiltBaseAngleY, tiltX, tiltY, tiltZ,
ProcessTilt(landscape, tiltBaseAngleY, tiltX, tiltY, tiltZ,
g_Config.bInvertTiltX, g_Config.bInvertTiltY,
xSensitivity, ySensitivity);
TranslateTiltToInput(trueTilt);
}
void NativeMessageReceived(const char *message, const char *value) {