Only use tilt to control function in non-windows

This commit is contained in:
danyalzia 2013-09-29 23:31:08 +05:00
parent 4582902cf2
commit d09495b72c

View File

@ -455,11 +455,13 @@ void EmuScreen::update(InputState &input) {
// Apply tilt to left stick
// TODO: Make into an axis
#ifndef _WIN32
if (g_Config.bAccelerometerToAnalogHoriz) {
// TODO: Deadzone, etc.
leftstick_x += clamp1(curve1(input.acc.y) * 2.0f) * g_Config.iTiltSensitivity / 100;
__CtrlSetAnalogX(clamp1(leftstick_x), CTRL_STICK_LEFT);
}
#endif
// Make sure fpsLimit starts at 0
if (PSP_CoreParameter().fpsLimit != 0 && PSP_CoreParameter().fpsLimit != 1) {