Open joshuacox opened 6 years ago
I'm not quite sure why a joystick is detected as mouse/keyboard. Perhaps try to disable hidinput and see if SDL detects the device? The joystick is handled in SDL window anyway.
What's the best method to disable hidinput?
I see the provider code here: https://kivy.org/docs/_modules/kivy/input/providers/hidinput.html
and in the config there is this section:
[input]
mouse = mouse
%(name)s = probesysfs,provider=hidinput
should I perhaps just change the provider there? I tried removing the line entirely but now I get no output at all (joystick does not seem to respond). Is there a way for me to specify which device? like /dev/input/js0
?
you might be interested in this documentation: https://kivy.org/docs/api-kivy.input.providers.probesysfs.html
@tshirtman that is indeed interesting, yet I can't help feeling that I'm hacking on a problem that is probably already solved, in pygame this is indeed pretty easy to test: https://gist.github.com/joshuacox/fa079f4e91102c8349aef0f544903dae
and while running the default code I do get lot's of spam from the joystick axis: https://github.com/kivy/kivy/blob/master/examples/miscellaneous/joystick.py
but commenting out that code and trying to listen to the buttons I get nothing.
Versions
Description
I was attempting to use a DragonRise USB controller to add many buttons and a joystick to an embedded raspberrypi project.
Code and Logs
output:
I have tried this on kivey 1.9, 1.10, and 1.11 on ubuntu, raspbian and arch linux, and on both x86_64 and armhf architectures with the dragonrise controller as well as some generic game controllers as well (all work under jstest)
stackoverflow where I asked about this bug first