[gnome-games] gamepad: Add InputType
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gamepad: Add InputType
- Date: Mon, 18 Jul 2016 18:53:10 +0000 (UTC)
commit c57f7a58c36245bfe70783faf610519da097d659
Author: Megh Parikh <meghprkh gmail com>
Date: Mon Jul 18 21:56:54 2016 +0530
gamepad: Add InputType
This enum describes whether it is an axis, a button or an invalid input
type.
This is part of a series of commits to add gamepad support.
src/Makefile.am | 1 +
src/gamepad/gamepad-input-type.vala | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 042a1d1..3393eb3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,6 +54,7 @@ gnome_games_SOURCES = \
dummy/dummy-runner.vala \
\
gamepad/gamepad-callbacks.vala \
+ gamepad/gamepad-input-type.vala \
gamepad/gamepad-mappings-manager.vala \
gamepad/linux/linux-raw-gamepad.vala \
gamepad/linux/linux-raw-gamepad-monitor.vala \
diff --git a/src/gamepad/gamepad-input-type.vala b/src/gamepad/gamepad-input-type.vala
new file mode 100644
index 0000000..dcee5f8
--- /dev/null
+++ b/src/gamepad/gamepad-input-type.vala
@@ -0,0 +1,7 @@
+// This file is part of GNOME Games. License: GPLv3
+
+private enum Games.GamepadInputType {
+ AXIS,
+ BUTTON,
+ INVALID,
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]