[gnome-games/wip/abhinavsingh/gamepad-config: 6/22] gamepad: Add GamepadDpad vapi
- From: Abhinav Singh <abhinavsingh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/abhinavsingh/gamepad-config: 6/22] gamepad: Add GamepadDpad vapi
- Date: Fri, 21 Jul 2017 12:07:07 +0000 (UTC)
commit bc2f66aaf5f1ab16ec8fdde2efc9d6a224c9fa8e
Author: theawless <theawless gmail com>
Date: Tue Jun 13 01:10:58 2017 +0530
gamepad: Add GamepadDpad vapi
This will help us save the previous state of DPads for building the
gamepad mappings.
https://bugzilla.gnome.org/show_bug.cgi?id=780754
src/Makefile.am | 2 ++
src/gamepad/gamepad-dpad.vapi | 7 +++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index c847a04..0d36fa2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,7 @@ EXTRA_DIST = \
gamepad/gamepad.h \
gamepad/gamepad.vapi \
gamepad/gamepad-dpad.h \
+ gamepad/gamepad-dpad.vapi \
gamepad/gamepad-input.h \
gamepad/gamepad-input.vapi \
gamepad/gamepad-mapping.h \
@@ -217,6 +218,7 @@ gnome_games_VALAFLAGS = \
--pkg event \
--pkg event-codes \
--pkg gamepad \
+ --pkg gamepad-dpad \
--pkg gamepad-input \
--pkg gamepad-monitor \
--pkg raw-gamepad \
diff --git a/src/gamepad/gamepad-dpad.vapi b/src/gamepad/gamepad-dpad.vapi
new file mode 100644
index 0000000..04be6f2
--- /dev/null
+++ b/src/gamepad/gamepad-dpad.vapi
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+[CCode (cheader_filename = "gamepad-dpad.h")]
+private struct Games.GamepadDPad {
+ Games.GamepadInput inputs[4];
+ int32 axis_values[2];
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]