We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4519

Summary: Correct mappings for PSX joystick via USB adapter
Product: SDL Reporter: Manuel Alfayate <redwindwanderer2>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Linux   

Description Manuel Alfayate 2019-02-21 04:46:36 UTC
Hi there,

PSX joystick via USB adapter with ID 03000000ff1100004133000010010000 needs to be adjusted so L2 and R2 buttons work, otherwise these two buttons are just ignored and don't generate a SDL_CONTROLLERBUTTONDOWN event.

Currently we have in SDL_gamecontrollerdb.h:

"03000000ff1100004133000010010000,PS2 Controller,a:b2,b:b1,back:b8,leftshoulder:b6,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,righttrigger:b5,start:b9,x:b3,y:b0,",

But the right line would be this:

"03000000ff1100004133000010010000,PS2 Controller,a:b2,b:b1,back:b8,leftshoulder:b6,leftstick:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b5,start:b9,x:b3,y:b0,",

Please set this line in SDL_gamecontrollerdb.h.  

Thanks

Manuel Alfayate
Comment 1 Sam Lantinga 2019-03-17 01:54:03 UTC
The change you made removes the bindings for the trigger. Is that what you meant to do? I'm pretty sure the original device that this was tested with used those buttons for triggers, not stick buttons.