From 900acb5d03a7895d6f1ee69c7536aebc520ea4e1 Mon Sep 17 00:00:00 2001 From: revvv <8734113+revvv@users.noreply.github.com> Date: Fri, 25 Feb 2022 13:48:07 +0100 Subject: [PATCH] add Retrode 2 (4 port SNES/Genesis adapter) --- Retrode_2.ini | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Retrode_2.ini diff --git a/Retrode_2.ini b/Retrode_2.ini new file mode 100644 index 0000000..64ee256 --- /dev/null +++ b/Retrode_2.ini @@ -0,0 +1,33 @@ +// Retrode 2 +[vid=0x0403,pid=0x97c1] + +//At first we set the dpad mode. This controller uses 2 bytes. One byte is for up(0x00)/down(0xFF) and the other for left(0x00)/right(0xFF). +DPAD_MODE = DPAD_Absolute_2Values + +// byte-position / value + +//Set dpad values. The values you need to set depend on the dpad mode. +VPAD_BUTTON_DPAD_ABS_UP = 0x02,0x9C +VPAD_BUTTON_DPAD_ABS_DOWN = 0x02,0x64 +VPAD_BUTTON_DPAD_ABS_LEFT = 0x01,0x9C +VPAD_BUTTON_DPAD_ABS_RIGHT = 0x01,0x64 + +//Set normal buttons +VPAD_BUTTON_A = 0x03,0x10 +VPAD_BUTTON_B = 0x03,0x01 +VPAD_BUTTON_X = 0x03,0x20 +VPAD_BUTTON_Y = 0x03,0x02 +VPAD_BUTTON_MINUS = 0x03,0x04 +VPAD_BUTTON_PLUS = 0x03,0x08 + +//We only have 1 trigger on each side, lets always trigger both. +VPAD_BUTTON_R = 0x03,0x80 +VPAD_BUTTON_ZR = 0x03,0x80 +VPAD_BUTTON_L = 0x03,0x40 +VPAD_BUTTON_ZL = 0x03,0x40 + +PAD_COUNT=4 +PAD1_FILTER=0x00,0x01 +PAD2_FILTER=0x00,0x02 +PAD3_FILTER=0x00,0x03 +PAD4_FILTER=0x00,0x04