Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Playstation Controllers with xboxdrv #92

Closed
dudleydes opened this issue Sep 9, 2017 · 2 comments
Closed

Add Support for Playstation Controllers with xboxdrv #92

dudleydes opened this issue Sep 9, 2017 · 2 comments

Comments

@dudleydes
Copy link

Playstation controllers are not natively supported by Qt but can work with xboxdrv to emulate a Xbox 360 controller.

The command suggested in the Qt Gamepad documentation is

sudo xboxdrv --detach-kernel-driver --mimic-xpad -s

A wired PS3 controller works in the Pegasus frontend with this command but it's not available in emulators. Running cat /proc/bus/input/devices, the virtual Xbox 360 pad appears as js0 with no assignment for the PS3 controller.

I can add a flag --evdev /dev/input/by-id/usb-Sony_PLAYSTATION_R_3_Controller-event-joystick but the PS3 controller does not work in Pegasus. It works fine once a rom is launched. This is because the PS3 controller is assigned js0 and the virtual Xbox 360 pad js1.

I do have a solution working using Linux Joystick Mapper.

@mmatyas
Copy link
Owner

mmatyas commented Sep 3, 2019

There have been a large set of changes to the gamepad handling recently, and I think PS3 controllers should also work now out of the box. If you still have one around, could you test it with the latest release?

@mmatyas
Copy link
Owner

mmatyas commented May 30, 2021

In theory, the current gamepad engine (SDL 2.0.14) supports even PS5 gamepads, so I think this can be closed now.

@mmatyas mmatyas closed this as completed May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants