From 83b01ea3228b7ad3237bbdfb2393d409a1e9bb5a Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 26 Mar 2019 23:26:08 -0700 Subject: Support controllers that have their dpad mapped to an axis --- bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings.c') 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; } } -- cgit v1.2.3