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 - Correct mappings for PSX joystick via USB adapter
Summary: Correct mappings for PSX joystick via USB adapter
Status: WAITING
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-21 04:46 UTC by Manuel Alfayate
Modified: 2019-03-17 01:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.