GNOME Bugzilla – Bug 769836
gamepads: Support gamepads properly mapped in the kernel
Last modified: 2016-08-16 15:40:46 UTC
We should support gamepads which are properly mapped in the kernel (exposing A, B, X, Y... buttons) even if we don't have a mapping for them.
Created attachment 333218 [details] [review] gamepad: Support gamepads without a mapping Support gamepads sending proper gamepad events (buttons A, B, X, Y...) even if they don't have a mapping.
Review of attachment 333218 [details] [review]: Looks good apart from this. ::: src/gamepad/raw-gamepad.vala @@ +9,3 @@ */ private interface Games.RawGamepad : Object { + public abstract signal void standard_button_event (StandardGamepadButton button, bool value); I don't understand why you need a different signal for this. Why not reuse the definitions from the Linux kernel? This code will only work on Linux anyway...
Attachment 333218 [details] pushed as 3279866 - gamepad: Support gamepads without a mapping