From 5fe47c73b17ddea0f3c74b9fe75b0294f0368398 Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 02:54:00 -0700 Subject: [PATCH 1/7] Add files via upload --- miadore wired N64 controller.ini | 37 ++++++++++++++++++++++++++++++++ miadore wired NES controller.ini | 15 +++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 miadore wired N64 controller.ini create mode 100644 miadore wired NES controller.ini diff --git a/miadore wired N64 controller.ini b/miadore wired N64 controller.ini new file mode 100644 index 0000000..c03a3ce --- /dev/null +++ b/miadore wired N64 controller.ini @@ -0,0 +1,37 @@ +#miadore wired N64 controller I got cheap in a bundle with some USB NES controllers +[vid=0x0F0D,pid=0x00C1] + +#dpad +DPAD_MODE = DPAD_HAT +DPAD_MASK = 0x0F +VPAD_BUTTON_DPAD_N = 0x02,0x00 +VPAD_BUTTON_DPAD_NE = 0x02,0x01 +VPAD_BUTTON_DPAD_E = 0x02,0x02 +VPAD_BUTTON_DPAD_SE = 0x02,0x03 +VPAD_BUTTON_DPAD_S = 0x02,0x04 +VPAD_BUTTON_DPAD_SW = 0x02,0x05 +VPAD_BUTTON_DPAD_W = 0x02,0x06 +VPAD_BUTTON_DPAD_NW = 0x02,0x07 +VPAD_BUTTON_DPAD_Neutral = 0x02,0x0F + +#buttons +#for some reason they use lower byte of 00 all four times, then the upper byte only three times, the lower byte of 01 twice, and the upper byte of 01 only once. why +#like it's so close zlr are the three and start is the one, just swap A and B with CU and CR like come on. +VPAD_R_STICK_LEFT = 0x00,0x01 +VPAD_BUTTON_B = 0x00,0x02 +VPAD_BUTTON_A = 0x00,0x04 +VPAD_R_STICK_DOWN = 0x00,0x08 +VPAD_BUTTON_L = 0x00,0x10 +VPAD_BUTTON_R = 0x00,0x20 +VPAD_BUTTON_ZL = 0x00,0x40 +VPAD_R_STICK_RIGHT = 0x01,0x01 +VPAD_R_STICK_UP = 0x01,0x02 +VPAD_BUTTON_PLUS = 0x01,0x10 + +#analog +#simple values. hopefully doesn't cause issues for anybody. +VPAD_L_STICK_Y = 0x03,0x80 +VPAD_L_STICK_Y_MINMAX = 0x00,0xFF +VPAD_L_STICK_Y_INVERT = TRUE +VPAD_L_STICK_X = 0x04,0x80 +VPAD_L_STICK_X_MINMAX = 0x00,0xFF \ No newline at end of file diff --git a/miadore wired NES controller.ini b/miadore wired NES controller.ini new file mode 100644 index 0000000..2eb8be8 --- /dev/null +++ b/miadore wired NES controller.ini @@ -0,0 +1,15 @@ +#miadore wired NES controller I got cheap in a bundle with some USB N64 controllers +[vid=0x0079,pid=0x0011] + +#buttons +VPAD_BUTTON_A = 0x05,0x2F +VPAD_BUTTON_B = 0x05,0x4F +VPAD_BUTTON_PLUS = 0x06,0x20 +VPAD_BUTTON_MINUS = 0x06,0x10 + +#dpad +DPAD_MODE = DPAD_NORMAL +VPAD_BUTTON_RIGHT = 0x03,0xFF +VPAD_BUTTON_LEFT = 0x03,0x00 +VPAD_BUTTON_DOWN = 0x04,0xFF +VPAD_BUTTON_UP = 0x04,0x00 \ No newline at end of file From 7cf19a86b0a5b45baa4f8419a94b702fa415a9bb Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 03:01:19 -0700 Subject: [PATCH 2/7] Add files via upload From b41f7a0a21ea080095828aff96863060ec75caf3 Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 03:02:19 -0700 Subject: [PATCH 3/7] Add files via upload --- miadore wired N64 controller.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miadore wired N64 controller.ini b/miadore wired N64 controller.ini index c03a3ce..6095d12 100644 --- a/miadore wired N64 controller.ini +++ b/miadore wired N64 controller.ini @@ -12,7 +12,7 @@ VPAD_BUTTON_DPAD_S = 0x02,0x04 VPAD_BUTTON_DPAD_SW = 0x02,0x05 VPAD_BUTTON_DPAD_W = 0x02,0x06 VPAD_BUTTON_DPAD_NW = 0x02,0x07 -VPAD_BUTTON_DPAD_Neutral = 0x02,0x0F +VPAD_BUTTON_DPAD_NEUTRAL = 0x02,0x0F #buttons #for some reason they use lower byte of 00 all four times, then the upper byte only three times, the lower byte of 01 twice, and the upper byte of 01 only once. why From 6caa1d53ce4f65db99dd77887e8099692b7fee93 Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 03:02:52 -0700 Subject: [PATCH 4/7] Update miadore wired NES controller.ini --- miadore wired NES controller.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/miadore wired NES controller.ini b/miadore wired NES controller.ini index 2eb8be8..0f4f537 100644 --- a/miadore wired NES controller.ini +++ b/miadore wired NES controller.ini @@ -2,14 +2,14 @@ [vid=0x0079,pid=0x0011] #buttons -VPAD_BUTTON_A = 0x05,0x2F -VPAD_BUTTON_B = 0x05,0x4F +VPAD_BUTTON_A = 0x05,0x2F +VPAD_BUTTON_B = 0x05,0x4F VPAD_BUTTON_PLUS = 0x06,0x20 VPAD_BUTTON_MINUS = 0x06,0x10 #dpad -DPAD_MODE = DPAD_NORMAL +DPAD_MODE = DPAD_NORMAL VPAD_BUTTON_RIGHT = 0x03,0xFF VPAD_BUTTON_LEFT = 0x03,0x00 VPAD_BUTTON_DOWN = 0x04,0xFF -VPAD_BUTTON_UP = 0x04,0x00 \ No newline at end of file +VPAD_BUTTON_UP = 0x04,0x00 From 12e60f4437d162d6c1fbe508f06e4f834c64015c Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 03:05:28 -0700 Subject: [PATCH 5/7] Update miadore wired NES controller.ini --- miadore wired NES controller.ini | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/miadore wired NES controller.ini b/miadore wired NES controller.ini index 0f4f537..c8dbc67 100644 --- a/miadore wired NES controller.ini +++ b/miadore wired NES controller.ini @@ -2,14 +2,14 @@ [vid=0x0079,pid=0x0011] #buttons -VPAD_BUTTON_A = 0x05,0x2F -VPAD_BUTTON_B = 0x05,0x4F -VPAD_BUTTON_PLUS = 0x06,0x20 -VPAD_BUTTON_MINUS = 0x06,0x10 +VPAD_BUTTON_A = 0x05,0x2F +VPAD_BUTTON_B = 0x05,0x4F +VPAD_BUTTON_PLUS = 0x06,0x20 +VPAD_BUTTON_MINUS = 0x06,0x10 #dpad -DPAD_MODE = DPAD_NORMAL -VPAD_BUTTON_RIGHT = 0x03,0xFF -VPAD_BUTTON_LEFT = 0x03,0x00 -VPAD_BUTTON_DOWN = 0x04,0xFF -VPAD_BUTTON_UP = 0x04,0x00 +DPAD_MODE = DPAD_NORMAL +VPAD_BUTTON_RIGHT = 0x03,0xFF +VPAD_BUTTON_LEFT = 0x03,0x00 +VPAD_BUTTON_DOWN = 0x04,0xFF +VPAD_BUTTON_UP = 0x04,0x00 From 6e3cbb641547551629e06b5e757854db65868424 Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 03:10:13 -0700 Subject: [PATCH 6/7] Update miadore wired N64 controller.ini --- miadore wired N64 controller.ini | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/miadore wired N64 controller.ini b/miadore wired N64 controller.ini index 6095d12..f4617b4 100644 --- a/miadore wired N64 controller.ini +++ b/miadore wired N64 controller.ini @@ -12,26 +12,26 @@ VPAD_BUTTON_DPAD_S = 0x02,0x04 VPAD_BUTTON_DPAD_SW = 0x02,0x05 VPAD_BUTTON_DPAD_W = 0x02,0x06 VPAD_BUTTON_DPAD_NW = 0x02,0x07 -VPAD_BUTTON_DPAD_NEUTRAL = 0x02,0x0F +VPAD_BUTTON_DPAD_NEUTRAL = 0x02,0x0F #buttons #for some reason they use lower byte of 00 all four times, then the upper byte only three times, the lower byte of 01 twice, and the upper byte of 01 only once. why #like it's so close zlr are the three and start is the one, just swap A and B with CU and CR like come on. -VPAD_R_STICK_LEFT = 0x00,0x01 -VPAD_BUTTON_B = 0x00,0x02 -VPAD_BUTTON_A = 0x00,0x04 -VPAD_R_STICK_DOWN = 0x00,0x08 -VPAD_BUTTON_L = 0x00,0x10 -VPAD_BUTTON_R = 0x00,0x20 -VPAD_BUTTON_ZL = 0x00,0x40 -VPAD_R_STICK_RIGHT = 0x01,0x01 -VPAD_R_STICK_UP = 0x01,0x02 -VPAD_BUTTON_PLUS = 0x01,0x10 +VPAD_R_STICK_LEFT = 0x00,0x01 +VPAD_BUTTON_B = 0x00,0x02 +VPAD_BUTTON_A = 0x00,0x04 +VPAD_R_STICK_DOWN = 0x00,0x08 +VPAD_BUTTON_L = 0x00,0x10 +VPAD_BUTTON_R = 0x00,0x20 +VPAD_BUTTON_ZL = 0x00,0x40 +VPAD_R_STICK_RIGHT = 0x01,0x01 +VPAD_R_STICK_UP = 0x01,0x02 +VPAD_BUTTON_PLUS = 0x01,0x10 #analog #simple values. hopefully doesn't cause issues for anybody. -VPAD_L_STICK_Y = 0x03,0x80 -VPAD_L_STICK_Y_MINMAX = 0x00,0xFF -VPAD_L_STICK_Y_INVERT = TRUE -VPAD_L_STICK_X = 0x04,0x80 -VPAD_L_STICK_X_MINMAX = 0x00,0xFF \ No newline at end of file +VPAD_L_STICK_Y = 0x03,0x80 +VPAD_L_STICK_Y_MINMAX = 0x00,0xFF +VPAD_L_STICK_Y_INVERT = TRUE +VPAD_L_STICK_X = 0x04,0x80 +VPAD_L_STICK_X_MINMAX = 0x00,0xFF From d502eb725358bbee4db4fac9276249be30c9dcb9 Mon Sep 17 00:00:00 2001 From: Omnises Nihilis <38057571+Omnises@users.noreply.github.com> Date: Sat, 25 May 2024 04:26:25 -0700 Subject: [PATCH 7/7] Update miadore wired N64 controller.ini --- miadore wired N64 controller.ini | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/miadore wired N64 controller.ini b/miadore wired N64 controller.ini index f4617b4..7c89e40 100644 --- a/miadore wired N64 controller.ini +++ b/miadore wired N64 controller.ini @@ -1,4 +1,5 @@ #miadore wired N64 controller I got cheap in a bundle with some USB NES controllers +#for some UNHOLY reason, this controller has the same VID and PID as the Horipad Switch. They ARE really similar in terms of inputs, but not the same. If you poor soul find yourself using this cheap controller and having the buttons not work, either delete the Horipad Switch one or copy the code from this into it. [vid=0x0F0D,pid=0x00C1] #dpad @@ -15,7 +16,7 @@ VPAD_BUTTON_DPAD_NW = 0x02,0x07 VPAD_BUTTON_DPAD_NEUTRAL = 0x02,0x0F #buttons -#for some reason they use lower byte of 00 all four times, then the upper byte only three times, the lower byte of 01 twice, and the upper byte of 01 only once. why +#they used lower byte of 00 all four times, then the upper byte only three times, the lower byte of 01 twice, and the upper byte of 01 only once. why #like it's so close zlr are the three and start is the one, just swap A and B with CU and CR like come on. VPAD_R_STICK_LEFT = 0x00,0x01 VPAD_BUTTON_B = 0x00,0x02 @@ -30,8 +31,8 @@ VPAD_BUTTON_PLUS = 0x01,0x10 #analog #simple values. hopefully doesn't cause issues for anybody. -VPAD_L_STICK_Y = 0x03,0x80 +VPAD_L_STICK_X = 0x03,0x80 +VPAD_L_STICK_X_MINMAX = 0x00,0xFF +VPAD_L_STICK_Y = 0x04,0x80 VPAD_L_STICK_Y_MINMAX = 0x00,0xFF VPAD_L_STICK_Y_INVERT = TRUE -VPAD_L_STICK_X = 0x04,0x80 -VPAD_L_STICK_X_MINMAX = 0x00,0xFF