mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Code style fixes, translation key fix, cleanup
This commit is contained in:
1 parent
ee8868ed99
commit
102607a6e8
49 files changed
+146
-172
No files matched your search
+6
-15
@@ -1430,15 +1430,6 @@ void NativeAxis(const AxisInput &axis) {
|
||||
}
|
||||
break;
|
||||
|
||||
case JOYSTICK_AXIS_OUYA_UNKNOWN1:
|
||||
case JOYSTICK_AXIS_OUYA_UNKNOWN2:
|
||||
case JOYSTICK_AXIS_OUYA_UNKNOWN3:
|
||||
case JOYSTICK_AXIS_OUYA_UNKNOWN4:
|
||||
//Don't know how to handle these. Someone should figure it out.
|
||||
//Does the Ouya even have an accelerometer / gyro? I can't find any reference to these
|
||||
//in the Ouya docs...
|
||||
return;
|
||||
|
||||
default:
|
||||
HLEPlugins::PluginDataAxis[axis.axisId] = axis.value;
|
||||
// Don't take over completely!
|
||||
@@ -1446,15 +1437,15 @@ void NativeAxis(const AxisInput &axis) {
|
||||
return;
|
||||
}
|
||||
|
||||
//figure out the sensitivity of the tilt. (sensitivity is originally 0 - 100)
|
||||
//We divide by 50, so that the rest of the 50 units can be used to overshoot the
|
||||
//target. If you want control, you'd keep the sensitivity ~50.
|
||||
//For games that don't need much control but need fast reactions,
|
||||
//then a value of 70-80 is the way to go.
|
||||
// Figure out the sensitivity of the tilt. (sensitivity is originally 0 - 100)
|
||||
// We divide by 50, so that the rest of the 50 units can be used to overshoot the
|
||||
// target. If you want precise control, you'd keep the sensitivity ~50.
|
||||
// For games that don't need much control but need fast reactions,
|
||||
// then a value of 70-80 is the way to go.
|
||||
float xSensitivity = g_Config.iTiltSensitivityX / 50.0;
|
||||
float ySensitivity = g_Config.iTiltSensitivityY / 50.0;
|
||||
|
||||
//now transform out current tilt to the calibrated coordinate system
|
||||
// now transform out current tilt to the calibrated coordinate system
|
||||
Tilt trueTilt = GenTilt(baseTilt, currentTilt, g_Config.bInvertTiltX, g_Config.bInvertTiltY, g_Config.fDeadzoneRadius, xSensitivity, ySensitivity);
|
||||
|
||||
TranslateTiltToInput(trueTilt);
|
||||
|
||||
Reference in new issue
Block a user