From bf85a658bae749b8fb62d02aee26d6c01cb45aec Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 14 Aug 2020 23:46:31 +0200 Subject: [PATCH] (BTStack) Attempt build fix --- input/drivers_hid/btstack_hid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input/drivers_hid/btstack_hid.c b/input/drivers_hid/btstack_hid.c index de585ec606..fd704aea29 100644 --- a/input/drivers_hid/btstack_hid.c +++ b/input/drivers_hid/btstack_hid.c @@ -1411,8 +1411,9 @@ static int16_t btstack_hid_joypad_state( unsigned i; int16_t ret = 0; const struct retro_keybind *binds = (const struct retro_keybind*)binds_data; + btstack_hid_t *hid = (btstack_hid_t*)data; uint16_t port_idx = joypad_info->joy_idx; - const struct dinput_joypad_data *pad = &g_pads[port_idx]; + const struct dinput_joypad_data *pad = &hid->slots[port_idx]; if (!pad || !pad->joypad) return 0;