summaryrefslogtreecommitdiff
path: root/plugins/dfinput
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-02-23 01:14:10 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-02-23 01:14:10 +0000
commit21574a170079297b6c655c5dfea7be097c5df684 (patch)
tree276e6df44c3292c910415d03b348534f5e2cf81f /plugins/dfinput
parentb631cf8b0ee6b7ffc74133060a47896f5d3126bb (diff)
downloadpcsxr-21574a170079297b6c655c5dfea7be097c5df684.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@41816 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
-rw-r--r--plugins/dfinput/analog.c7
1 files changed, 2 insertions, 5 deletions
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) {