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

Joystick and Keyboard inputs not recognized in Linux #61

Closed
chris-ali opened this issue May 30, 2020 · 1 comment
Closed

Joystick and Keyboard inputs not recognized in Linux #61

chris-ali opened this issue May 30, 2020 · 1 comment
Assignees
Labels

Comments

@chris-ali
Copy link
Owner

Joystick names and axes are read differently in Linux vs Windows, so ControlsConfig.json and input classes need to reflect this.

Also, keyboards cannot be read by jinput in Linux w/o root privileges or device config settings because of security mitigations:
https://stackoverflow.com/questions/4307143/using-keyboards-in-jinput-without-root-privileges

Likely need to pull out all inputs from simulation, handle them in JME and pass polled values and key events into simulation

@chris-ali chris-ali added the bug label May 30, 2020
@chris-ali chris-ali self-assigned this May 30, 2020
@chris-ali
Copy link
Owner Author

Keyboard inputs in Linux Mint (and perhaps other distros) will not be read if the user is not part of the input group:

bulletmark/libinput-gestures#7

Adding the user to the input group, logging out, and then back in fixed the issue. Will update documentation accordingly.

Joystick input devices have a different name in Linux vs Windows, so most likely this will need to be addressed in the future with a controls configuration GUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant