Only use tilt to control function in mobile

This commit is contained in:
danyalzia 2013-09-30 00:07:38 +05:00
parent d09495b72c
commit 0394b78ca9

View File

@ -455,7 +455,7 @@ void EmuScreen::update(InputState &input) {
// Apply tilt to left stick
// TODO: Make into an axis
#ifndef _WIN32
#ifdef USING_GLES2
if (g_Config.bAccelerometerToAnalogHoriz) {
// TODO: Deadzone, etc.
leftstick_x += clamp1(curve1(input.acc.y) * 2.0f) * g_Config.iTiltSensitivity / 100;