git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@33050 e17a0e51-4ae3-4d35-97c3-1a29b211df97

This commit is contained in:
SND\weimingzhi_cp 2009-10-26 10:56:27 +00:00
parent c1a4d19177
commit 0f3ff4e34b
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
October 26, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* plugins/dfinput/cfg.c: Fixed a bug which caused the settings for analog
pad not correctly read from the config file.
October 25, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* plugins/dfinput/cfg.c: Replaced dfinput with new SDL/Xkb-based input plugin.

View File

@ -218,14 +218,14 @@ void LoadConfig() {
g.cfg.PadDef[current].KeyDef[DKEY_SQUARE].Key = a;
g.cfg.PadDef[current].KeyDef[DKEY_SQUARE].JoyEvType = b;
g.cfg.PadDef[current].KeyDef[DKEY_SQUARE].J.d = c;
} else if (strncmp(buf, "LeftAnalogX=", 11) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_LEFT][ANALOG_X] = atoi(&buf[11]);
} else if (strncmp(buf, "LeftAnalogY=", 11) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_LEFT][ANALOG_Y] = atoi(&buf[11]);
} else if (strncmp(buf, "RightAnalogX=", 12) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_RIGHT][ANALOG_X] = atoi(&buf[12]);
} else if (strncmp(buf, "RightAnalogY=", 12) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_RIGHT][ANALOG_Y] = atoi(&buf[12]);
} else if (strncmp(buf, "LeftAnalogX=", 12) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_LEFT][ANALOG_X] = atoi(&buf[12]);
} else if (strncmp(buf, "LeftAnalogY=", 12) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_LEFT][ANALOG_Y] = atoi(&buf[12]);
} else if (strncmp(buf, "RightAnalogX=", 13) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_RIGHT][ANALOG_X] = atoi(&buf[13]);
} else if (strncmp(buf, "RightAnalogY=", 13) == 0) {
g.cfg.PadDef[current].AnalogDef[ANALOG_RIGHT][ANALOG_Y] = atoi(&buf[13]);
}
}