summaryrefslogtreecommitdiff
path: root/plugins/dfinput/cfg-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfinput/cfg-gtk.c')
-rwxr-xr-xplugins/dfinput/cfg-gtk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/dfinput/cfg-gtk.c b/plugins/dfinput/cfg-gtk.c
index 7b5df6c2..80443f3a 100755
--- a/plugins/dfinput/cfg-gtk.c
+++ b/plugins/dfinput/cfg-gtk.c
@@ -60,7 +60,8 @@ const char *EmuKeyText[EMU_TOTAL] = {
N_("Load state"),
N_("Save state"),
N_("Screenshot"),
- N_("Escape")
+ N_("Escape"),
+ N_("Rewind")
};
const char *DPadText[DKEY_TOTAL] = {
@@ -403,7 +404,7 @@ static void ReadDKeyEvent(int padnum, int key) {
for (i = 0; i < numAxes; i++) {
axis = SDL_JoystickGetAxis(js, i);
- if (abs(axis) > 16383 && (abs(axis - InitAxisPos[i]) > 4096 || abs(axis - PrevAxisPos[i]) > 4096)) {
+ if (abs(axis) > 16383 && (abs(axis - InitAxisPos[i]) > 4096 || abs(axis - PrevAxisPos[i]) > 4096) && (abs(axis) < 32768)) {
keydef->JoyEvType = AXIS;
keydef->J.Axis = (i + 1) * (axis > 0 ? 1 : -1);
goto end;