Skip to content

Commit

Permalink
Add support to supergun adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
bootsector committed Dec 6, 2021
1 parent 6a01088 commit c6d4d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions firmware/Input/Input.c
Expand Up @@ -103,6 +103,7 @@ static void Input_InitializePad(uint8_t force_init) {
break;
case DB15_PAD_SNES:
case DB15_PAD_NES:
case DB15_PAD_SUPERGUN:
pad_initialized = SNES_In_Init();
break;
case DB15_PAD_GENESIS:
Expand Down Expand Up @@ -132,6 +133,7 @@ static void Input_ReadPad(AbstractPad_t *padData) {
padData->cfg_map_pad_id = LLOAD_CFG_PAD_NEOGEO;
break;
case DB15_PAD_SNES:
case DB15_PAD_SUPERGUN:
SNES_In_GetPadState(padData);
padData->cfg_map_pad_id = LLOAD_CFG_PAD_SNES;
break;
Expand Down
2 changes: 1 addition & 1 deletion firmware/Input/Input.h
Expand Up @@ -33,7 +33,7 @@
#define DB15_PAD_SATURN 0b0111
#define DB15_PAD_RESERVED5 0b1000
#define DB15_PAD_TG16 0b1001
#define DB15_PAD_RESERVED6 0b1010
#define DB15_PAD_SUPERGUN 0b1010
#define DB15_PAD_RESERVED7 0b1011
#define DB15_PAD_RESERVED8 0b1100
#define DB15_PAD_RESERVED9 0b1101
Expand Down

0 comments on commit c6d4d09

Please sign in to comment.