Introduce button mappings for generic usb controller

This commit is contained in:
daniel jimenez 2017-11-13 21:58:21 -08:00
parent 0d572b0deb
commit e91bae38cf
2 changed files with 7 additions and 7 deletions

View File

@ -86,10 +86,10 @@ static void hidpad_nesusb_packet_handler(void *data, uint8_t *packet, uint16_t s
uint32_t i, pressed_keys;
static const uint32_t button_mapping[17] =
{
NO_BTN,
NO_BTN,
NO_BTN,
NO_BTN,
RETRO_DEVICE_ID_JOYPAD_L2,
RETRO_DEVICE_ID_JOYPAD_R2,
RETRO_DEVICE_ID_JOYPAD_L,
RETRO_DEVICE_ID_JOYPAD_R,
RETRO_DEVICE_ID_JOYPAD_SELECT,
RETRO_DEVICE_ID_JOYPAD_START,
NO_BTN,
@ -100,8 +100,8 @@ static void hidpad_nesusb_packet_handler(void *data, uint8_t *packet, uint16_t s
NO_BTN,
RETRO_DEVICE_ID_JOYPAD_B,
RETRO_DEVICE_ID_JOYPAD_A,
NO_BTN,
NO_BTN,
RETRO_DEVICE_ID_JOYPAD_Y,
RETRO_DEVICE_ID_JOYPAD_X,
16, /* HOME BUTTON when pressing SELECT+START */
};
struct hidpad_nesusb_data *device = (struct hidpad_nesusb_data*)data;

View File

@ -25,7 +25,7 @@
struct hidpad_psxadapter_data
{
struct pad_connection* connection;
uint8_t data[8];
uint8_t data[64];
uint32_t slot;
uint64_t buttons;
};