diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-03-26 23:26:08 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-03-26 23:26:08 -0700 |
commit | 83b01ea3228b7ad3237bbdfb2393d409a1e9bb5a (patch) | |
tree | fff78b9a14a2c6cbfde205ac9b3d934420ce71fa /bindings.c | |
parent | 3f867b2206be833ee764acc5cfae4c0ce2780da1 (diff) |
Support controllers that have their dpad mapped to an axis
Diffstat (limited to 'bindings.c')
-rw-r--r-- | bindings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |