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

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

Open
realeatham opened this issue Dec 2, 2024 · 5 comments
Labels
0 | type: enhancement New feature or request
Milestone

Comments

@realeatham
Copy link

realeatham commented Dec 2, 2024

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?

@kakra
Copy link
Collaborator

kakra commented Dec 2, 2024

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: #282. I could need some testers.

@kakra kakra added this to the v0.10 milestone Dec 2, 2024
@kakra kakra added the 0 | type: enhancement New feature or request label Dec 2, 2024
kakra added a commit to kakra/xpadneo that referenced this issue Dec 2, 2024
Co-authored-by: Jacob Essex <[email protected]>
Co-authored-by: Florian Dollinger <[email protected]>
Closes: atar-axis#99
Closes: atar-axis#105
Closes: atar-axis#160
Closes: atar-axis#511
Fixes: atar-axis#333
See-also: atar-axis#419
See-also: atar-axis#435
Signed-off-by: Kai Krakow <[email protected]>
@realeatham
Copy link
Author

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

@kakra
Copy link
Collaborator

kakra commented Dec 2, 2024

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

@realeatham
Copy link
Author

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

@kakra
Copy link
Collaborator

kakra commented Dec 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 | type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants