Davidobot / BetterJoy

Allows the Nintendo Switch Pro Controller, Joycons and SNES controller to be used with CEMU, Citra, Dolphin, Yuzu and as generic XInput
Other
3.97k stars 351 forks source link

[BUG] Unexpected mapping for DS4 mode #559

Open GinkREAL opened 4 years ago

GinkREAL commented 4 years ago

Describe the bug Using two joycons as a single controller in DS4 mode has unexpected output compared to an actual DS4 (based on physical layout)

Expected behavior Pressing Y on the joycons should trigger the same button as square on DS4, etc etc

Controller (please complete the following information):

Reference Image Capture

Actual DS4 output SQUARE = 1
CROSS = 2
CIRCLE = 3
TRIANGLE = 4
L2 = x rotation and button 7
R2 = y rotation and button 8

Switch output Y = 4 (should be 1)
B = 3 (should be 2)
A = 2 (should be 3)
X = ? (not registering for some reason)
ZL = only x rotation
ZR = only y rotation

Davidobot commented 4 years ago

Try this version, it's the latest build from the repo https://github.com/Davidobot/BetterJoy/issues/540#issuecomment-699588169

I think there was some code that fixed the DS4 binding.

GinkREAL commented 4 years ago

Doesn't seem to change anything

Davidobot commented 4 years ago

Right, will look into this then when I get the time.

MoonSarito commented 3 years ago

I was trying to use it on PS Remote Remote Play as a DualShock 4.

Everything worked perfectly, but ZR and ZL did not, I tried everything and I couldn't solve it. https://i.imgur.com/dSUtJHc.png