GNOME Bugzilla – Bug 770468
gamepad: Several annoying bugs
Last modified: 2016-08-27 07:14:40 UTC
Gamepads have several annoying bugs: - standard gamepad button events aren't mapped - standard axis events aren't forwarded without a mapping - gamepad axes with an exotic range don't work
Created attachment 334256 [details] [review] gamepad: Check mapping on standard button events This avoids standard button events to be handled two times if the gamepad has a mapping while allowing to map any event.
Created attachment 334257 [details] [review] gamepad: Add RawGamepad.standard_axis_event() signal This will be used in the next commits to let the gamepads forward the well formed axis events.
Created attachment 334258 [details] [review] gamepad: Forward standard axis events This allow standard axis events to be handled by gamepads without a mapping.
Created attachment 334259 [details] [review] gamepad: Add LinuxRawGamepad.centered_axis_value() This allows to properly compute the value of axis event's value even if its range is different from [-abs_info.maximum:abs_info.maximum].
Created attachment 334260 [details] [review] gamepad: Make LinuxRawGamepad send standard axis events This allow gamepads with not mapping but sending proper gamepad events to work as intended.
Attachment 334256 [details] pushed as d14b06c - gamepad: Check mapping on standard button events Attachment 334257 [details] pushed as 4b4e509 - gamepad: Add RawGamepad.standard_axis_event() signal Attachment 334258 [details] pushed as d971c23 - gamepad: Forward standard axis events Attachment 334259 [details] pushed as 946937a - gamepad: Add LinuxRawGamepad.centered_axis_value() Attachment 334260 [details] pushed as f548297 - gamepad: Make LinuxRawGamepad send standard axis events