diddlesnaps / supertuxkart

MIT License
11 stars 6 forks source link

Snap : joystick #2

Closed benyanke closed 5 years ago

benyanke commented 5 years ago

It would be great to be able to use a plug like joystick.

I saw another similar snap that you could run a command like:

snap connect supertuxkart:process-control :process-control
snap connect supertuxkart:joystick :joystick

Perhaps this could even be done by default, if that's an option.

Any chance this could come here?

lucyllewy commented 5 years ago

This is already possible. On any system run:

sudo snap connect supertuxkart:joystick

or on Ubuntu you can use the Software Centre to do it via a GUI:

peek 2018-12-18 12-39

lucyllewy commented 5 years ago

This issue hasn't had any replies for some time, so I'm going to close it for now. Please reopen if it is still a problem, or open a new issue for other problems.

ozdreamern commented 5 years ago

I'd like to reopen this, or open a new issue specifically about Wiimotes (or maybe Bluetooth gamepads in general). I've tried to configure STK to use a Wiimote without success: none of mine ever successfully pair, and my guess is this fails because the snap doesn't have permission to access bluetooth devices.

STK handles this controller type via the wiiuse library, which in turn depends on kernel bluetooth support and the BlueZ drivers (both are enabled on my Ubuntu 18.04 system, I use several BT devices). When STK is run with logging enabled, this is what I see:

wiiuse v0.15.4 loaded. De-facto official fork at http://github.com/wiiuse/wiiuse Original By: Michael Laforest <thepara[at]gmail{dot}com> https://sourceforge.net/projects/wiiuse/ [INFO] wiiuse clean up... hci_get_route: Permission denied

I wonder if this could be resolved by plugging into the bluetooth-control and/or bluez interfaces?