GNOME Bugzilla – Bug 568213
Joystick/Gamepad plugin
Last modified: 2018-05-24 10:32:31 UTC
Should be interesting make a plugin to control totem from a joystick or a gamepad.
Sure, although I expect configuration for this to be a right pain. It would also need to use XInput//GdkDevice API, to avoid being Linux specific.
Our student team is going to create a plugin for this bug as a student project. The final due date for the project is May 3rd, so a patch should be ready by then if not before.
Note that the code should either use GDK API directly (and thus not support hotplug of devices), or use the XInput API directly. I would advise that you start working on this feature using the XInput2 support in GTK+. See bug 596725 for details.
Created attachment 160792 [details] [review] Totem Gamepad control plugin This patch comprises our entire plugin for gamepad control, as well as the addition to the main configure.in. The plugin uses a kernel-level api for joystick querying, contains a configuration GUI, and stores configuration settings in GConf.
This is a huge patch, and sorry about not commenting on it beforehand. I don't like the idea of poking the device directly, but I can live with it as long as it doesn't need changes from the default configuration to get access rights. About the plugin itself, it needs updating for GNOME 3.x code (libpeas, GSettings), obviously, coding style changes to match the current code, and I would really rather it didn't require this much configuration. Let's focus on the 2/3 types of joypads around, and provide a hard-coded configuration that suits those (I'm thinking mainly PS3 joypad, Wiimote and regular "4 buttons" joypads).
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/totem/issues/22.