From 3a0468523a927020ee9b0ca24b54c1ce110feb1e Mon Sep 17 00:00:00 2001 From: gblues Date: Thu, 4 Jan 2018 22:13:30 -0800 Subject: [PATCH] Fix RETRO_DEVICE_ID_POINTER_PRESSED handling == DETAILS The joypad driver was only copying the first 16 bits when executing get_buttons(). The touchpad button is bit 19, so as a result RETRO_DEVICE_ID_POINTER_PRESSED would never fire. We fix this for now by copying 32 bits. == TESTING Will need someone to verify. I don't have a core handy that leverages the pointer device state functionality. --- wiiu/input/wpad_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiiu/input/wpad_driver.c b/wiiu/input/wpad_driver.c index 8b4e7e0032..844f80dbf3 100644 --- a/wiiu/input/wpad_driver.c +++ b/wiiu/input/wpad_driver.c @@ -211,7 +211,7 @@ static void wpad_get_buttons(unsigned pad, retro_bits_t *state) if(!wpad_query_pad(pad)) BIT256_CLEAR_ALL_PTR(state); else - BITS_COPY16_PTR(state, button_state); + BITS_COPY32_PTR(state, button_state); } static int16_t wpad_axis(unsigned pad, uint32_t axis)