summaryrefslogtreecommitdiff
path: root/bindings.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-03-26 23:26:08 -0700
committerMichael Pavone <pavone@retrodev.com>2019-03-26 23:26:08 -0700
commit83b01ea3228b7ad3237bbdfb2393d409a1e9bb5a (patch)
treefff78b9a14a2c6cbfde205ac9b3d934420ce71fa /bindings.c
parent3f867b2206be833ee764acc5cfae4c0ce2780da1 (diff)
Support controllers that have their dpad mapped to an axis
Diffstat (limited to 'bindings.c')
-rw-r--r--bindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings.c b/bindings.c
index cf5fb05..6c8919a 100644
--- a/bindings.c
+++ b/bindings.c
@@ -825,7 +825,7 @@ void process_pad_button(char *key, tern_val val, uint8_t valtype, void *data)
bind_dpad(hostpadnum, render_dpad_part(hostbutton), render_direction_part(hostbutton), bindtype, subtype_a, subtype_b);
return;
} else if (hostbutton & RENDER_AXIS_BIT) {
- bind_axis(hostpadnum, render_axis_part(hostbutton), 1, bindtype, subtype_a, subtype_b);
+ bind_axis(hostpadnum, render_axis_part(hostbutton), hostbutton & RENDER_AXIS_POS, bindtype, subtype_a, subtype_b);
return;
}
}