[gnome-games/wip/exalm/gameapd: 13/14] gamepad-tester: Show analog stick position precisely
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gameapd: 13/14] gamepad-tester: Show analog stick position precisely
- Date: Wed, 4 Mar 2020 16:51:35 +0000 (UTC)
commit 5ccf2a7d7e2a6517be12c91c70bd0742a5fe2184
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Mar 4 20:14:12 2020 +0500
gamepad-tester: Show analog stick position precisely
src/ui/gamepad-tester.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/gamepad-tester.vala b/src/ui/gamepad-tester.vala
index 4c7bfc58..ce2a2d8a 100644
--- a/src/ui/gamepad-tester.vala
+++ b/src/ui/gamepad-tester.vala
@@ -73,6 +73,6 @@ private class Games.GamepadTester : Gtk.Bin {
double value;
if (event.get_absolute (out axis, out value))
- gamepad_view.highlight ({ EventCode.EV_ABS, axis }, !(-0.8 < value < 0.8));
+ gamepad_view.set_analog ({ EventCode.EV_ABS, axis }, value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]