mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 09:32:58 +00:00
Merge pull request #6625 from gblues/master
Fix WaveBird support for the Wii U GCA
This commit is contained in:
commit
97215d5c8a
@ -25,7 +25,7 @@ static uint8_t activation_packet[] = { 0x13 };
|
||||
#define GCA_PORT_INITIALIZING 0x00
|
||||
#define GCA_PORT_POWERED 0x04
|
||||
#define GCA_PORT_CONNECTED 0x10
|
||||
|
||||
#define GCA_WAVEBIRD_CONNECTED 0x22
|
||||
|
||||
typedef struct wiiu_gca_instance {
|
||||
void *handle;
|
||||
@ -116,15 +116,14 @@ static void update_pad_state(wiiu_gca_instance_t *instance)
|
||||
|
||||
joypad_connection_t *pad;
|
||||
/* process each pad */
|
||||
//RARCH_LOG_BUFFER(instance->device_state, 37);
|
||||
for(i = 1; i < 37; i += 9)
|
||||
{
|
||||
port = i / 9;
|
||||
pad = instance->pads[port];
|
||||
|
||||
port_connected = instance->device_state[i] & GCA_PORT_CONNECTED;
|
||||
port_connected = instance->device_state[i];
|
||||
|
||||
if(port_connected)
|
||||
if(port_connected > GCA_PORT_POWERED)
|
||||
{
|
||||
if(pad == NULL)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user