[gnome-games] gamepad-mapper: Allow axis events to map buttons
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gamepad-mapper: Allow axis events to map buttons
- Date: Tue, 3 Apr 2018 10:40:13 +0000 (UTC)
commit 97a48eb6caefdb2bb2a87d6463ff195f9d839a16
Author: 1PunMan <saurabhsingh412 gmail com>
Date: Thu Feb 15 16:42:47 2018 +0530
gamepad-mapper: Allow axis events to map buttons
This allows to map analog triggers like LT and RT on the Xbox 360
gamepad to what we consider to be buttons.
https://gitlab.gnome.org/GNOME/gnome-games/issues/2
src/ui/gamepad-mapper.vala | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/src/ui/gamepad-mapper.vala b/src/ui/gamepad-mapper.vala
index ab15db9..651d6e5 100644
--- a/src/ui/gamepad-mapper.vala
+++ b/src/ui/gamepad-mapper.vala
@@ -71,9 +71,6 @@ private class Games.GamepadMapper : Gtk.Box {
uint16 axis;
double value;
- if (input.type == EventCode.EV_KEY)
- return;
-
if (!event.get_absolute (out axis, out value))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]