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/controller not activated on startup #2181

Closed
Beuc opened this issue Apr 29, 2020 · 1 comment
Closed

Joystick/controller not activated on startup #2181

Beuc opened this issue Apr 29, 2020 · 1 comment

Comments

@Beuc
Copy link
Contributor

Beuc commented Apr 29, 2020

Hi,

Under GNU/Linux, my joystick isn't working on start-up, even with #2180.
However with Shift+G I can select it. Then, even if skipping calibration, it works correctly.

It seems that the joystick does not fire any event until it is initialized, and typically this line isn't triggered:

if ev.type == CONTROLLERDEVICEADDED:
start(ev.which)

Hot-plugging doesn't seem to help.
It is detected in log.txt.
At first glance this would require explicitly enabling controllers on start-up.
What do you think?

@Beuc
Copy link
Contributor Author

Beuc commented Apr 29, 2020

One note: the reverse seems to happen in the web platform: the controller is not detected on start-up, but when pressing buttons it is immediately detected and activated.
It is not detected without activity on https://html5gamepad.com/ either so I believe this is an html5 limitation.

@renpytom renpytom added this to the 7.5/8.0 milestone Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants