[gnome-games/wip/abhinavsingh/gamepad-config: 1/25] gamepad: Add GamepadInput vapi
- From: Abhinav Singh <abhinavsingh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/abhinavsingh/gamepad-config: 1/25] gamepad: Add GamepadInput vapi
- Date: Mon, 10 Jul 2017 15:43:05 +0000 (UTC)
commit 1c44d54b20bb2d0380a33f7038ead3ee3fc12a99
Author: theawless <theawless gmail com>
Date: Tue May 23 19:23:32 2017 +0530
gamepad: Add GamepadInput vapi
This will be used for building the gamepad mappings.
https://bugzilla.gnome.org/show_bug.cgi?id=780754
src/Makefile.am | 2 ++
src/gamepad/gamepad-input.vapi | 7 +++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index a49476d..dfbf6a3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,6 +26,7 @@ EXTRA_DIST = \
event/event.vapi \
event/event-codes.vapi \
gamepad/gamepad.vapi \
+ gamepad/gamepad-input.vapi \
gamepad/gamepad-monitor.vapi \
gamepad/raw-gamepad.vapi \
$(NULL)
@@ -194,6 +195,7 @@ gnome_games_VALAFLAGS = \
--pkg event \
--pkg event-codes \
--pkg gamepad \
+ --pkg gamepad-input \
--pkg gamepad-monitor \
--pkg raw-gamepad \
--gresources $(gresource_file) \
diff --git a/src/gamepad/gamepad-input.vapi b/src/gamepad/gamepad-input.vapi
new file mode 100644
index 0000000..835e895
--- /dev/null
+++ b/src/gamepad/gamepad-input.vapi
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+[CCode (cheader_filename = "gamepad-input.h")]
+private struct Games.GamepadInput {
+ uint16 type;
+ uint16 code;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]