Skip to content

Commit

Permalink
Switch controller: Add the other device types
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Nov 7, 2021
1 parent b34e676 commit 11aabf8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions source/ios_pad/source/controllers/switch_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,22 @@ enum {
SWITCH_SUBCMD_ENABLE_VIBRATION = 0x48,
};

// TODO figure out the other device types
// https://switchbrew.org/wiki/Joy-Con_Firmware#Type
enum {
SWITCH_DEVICE_UNKNOWN,
SWITCH_DEVICE_JOYCON_LEFT,
SWITCH_DEVICE_JOYCON_RIGHT,
SWITCH_DEVICE_PRO_CONTROLLER,
SWITCH_DEVICE_N64_CONTROLLER = 12,
SWITCH_DEVICE_RESERVED_4,
SWITCH_DEVICE_RESERVED_5,
SWITCH_DEVICE_RESERVED_6,
SWITCH_DEVICE_FAMICON_LEFT,
SWITCH_DEVICE_FAMICON_RIGHT,
SWITCH_DEVICE_NES_LEFT,
SWITCH_DEVICE_NES_RIGHT,
SWITCH_DEVICE_SNES,
SWITCH_DEVICE_N64_CONTROLLER,
SWITCH_DEVICE_GENESIS_CONTROLLER,
};

static const uint32_t dpad_map[9] = {
Expand Down

0 comments on commit 11aabf8

Please sign in to comment.