From 21574a170079297b6c655c5dfea7be097c5df684 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Tue, 23 Feb 2010 01:14:10 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@41816 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfinput/analog.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/dfinput') diff --git a/plugins/dfinput/analog.c b/plugins/dfinput/analog.c index d736f6ce..8d14b00b 100644 --- a/plugins/dfinput/analog.c +++ b/plugins/dfinput/analog.c @@ -19,9 +19,6 @@ #include "pad.h" void InitAnalog() { - // use 127 instead of 128 fixes the FF8 "reverting" problem, but - // why ALL of the protocol docs I seen as well as psemu_plugin_defs.h - // say 128 is the center position? g.PadState[0].AnalogStatus[ANALOG_LEFT][0] = 127; g.PadState[0].AnalogStatus[ANALOG_LEFT][1] = 127; g.PadState[0].AnalogStatus[ANALOG_RIGHT][0] = 127; @@ -63,7 +60,7 @@ void CheckAnalog() { if (g.cfg.PadDef[i].AnalogDef[j][k].J.Axis > 0) { val = SDL_JoystickGetAxis(g.PadState[i].JoyDev, n); if (val >= 0) { - val += 32767; + val += 32640; val /= 256; switch (k) { @@ -76,7 +73,7 @@ void CheckAnalog() { } else if (g.cfg.PadDef[i].AnalogDef[j][k].J.Axis < 0) { val = SDL_JoystickGetAxis(g.PadState[i].JoyDev, n); if (val <= 0) { - val += 32767; + val += 32640; val /= 256; switch (k) { -- cgit v1.2.3