xpadneo icon indicating copy to clipboard operation
xpadneo copied to clipboard

How do I make the controller use key presses so it works with most things?

Open realeatham opened this issue 1 year ago • 5 comments

I paired my (Xbox series X|S) controller, but only the share button (F12) seems to affect my apps like firefox and my desktop environment. I used some online gamepad tester and it seems to work, so I assume that the gamepad uses some system for gamepads, not key presses, which makes sense. However, I am not playing games and nothing else seems to support these, so a way to make the controller use key and mouse presses would be nice.

Ideas for mapping the controller to keyboard presses:

dpad > arrow keys left stick > scrollwheel right stick > mouse left trigger > left click right trigger > right click xbox button > super key 3 lines > escape (maybe) Not sure about what to do with xyab, LB and RB, and the button with 2 rectangles intercecting. Maybe just left as gamepad keys?

realeatham avatar Dec 02 '24 05:12 realeatham

There's a mouse emulation aka "couch mode" in preparation which will be merged with v0.10. The gamepad will send mouse and keyboard input in this mode.

The share button works because the gamepad actually sends the F12 keypress. This will be configurable, probably with v0.11.

Check this PR for mouse mode: https://github.com/atar-axis/xpadneo/pull/282. I could need some testers.

kakra avatar Dec 02 '24 18:12 kakra

Thank you for responding fast! I would be happy to test it, how would I do that?

realeatham avatar Dec 02 '24 20:12 realeatham

Please ask in our Discord how to use a pull request for testing. The link is in the readme.

kakra avatar Dec 02 '24 20:12 kakra

Can you just say how here? I don't want to join a discord server just to test the driver, and I don't even have discord on this computer

realeatham avatar Dec 03 '24 04:12 realeatham

I'd rather add documentation for that instead of digging this inside issues. Stay tuned.

kakra avatar Dec 03 '24 13:12 kakra