mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Only use tilt to control function in non-windows
This commit is contained in:
parent
4582902cf2
commit
d09495b72c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user