[retro-gtk/wip/aplazas/0.13: 7/14] Port LightgunId to C
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/wip/aplazas/0.13: 7/14] Port LightgunId to C
- Date: Wed, 6 Sep 2017 07:02:53 +0000 (UTC)
commit 6c8e21ff5d06d02d8562b363ca529d754df52c2e
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Sep 5 14:57:40 2017 +0200
Port LightgunId to C
retro-gtk/Makefile.am | 3 +++
retro-gtk/input/device.vala | 13 -------------
retro-gtk/retro-lightgun-id.h | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 38 insertions(+), 13 deletions(-)
---
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index b6816bb..823a3ea 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -111,6 +111,7 @@ retro_gtkinclude_HEADERS = \
retro-device-type.h \
retro-gtk.h \
retro-joypad-id.h \
+ retro-lightgun-id.h \
retro-mouse-id.h \
$(NULL)
@@ -145,6 +146,7 @@ Retro_0_12_gir_SCANNERFLAGS = \
--c-include=retro-analog-index.h \
--c-include=retro-device-type.h \
--c-include=retro-joypad-id.h \
+ --c-include=retro-lightgun-id.h \
--c-include=retro-mouse-id.h \
--pkg-export=retro-gtk-0.12 \
$(NULL)
@@ -183,6 +185,7 @@ EXTRA_DIST = \
retro-disk-control-callback.h \
retro-game-info.h \
retro-module.h \
+ retro-lightgun-id.h \
retro-mouse-id.h \
retro-rotation.h \
retro-system-av-info.h \
diff --git a/retro-gtk/input/device.vala b/retro-gtk/input/device.vala
index a8165eb..04f6f3a 100644
--- a/retro-gtk/input/device.vala
+++ b/retro-gtk/input/device.vala
@@ -3,19 +3,6 @@
namespace Retro {
/**
- * The input types of a lightgun.
- */
-private enum LightgunId {
- X,
- Y,
- TRIGGER,
- CURSOR,
- TURBO,
- PAUSE,
- START
-}
-
-/**
* The input types of a pointer.
*/
private enum PointerId {
diff --git a/retro-gtk/retro-lightgun-id.h b/retro-gtk/retro-lightgun-id.h
new file mode 100644
index 0000000..7ea26e2
--- /dev/null
+++ b/retro-gtk/retro-lightgun-id.h
@@ -0,0 +1,35 @@
+// This file is part of retro-gtk. License: GPL-3.0+.
+
+#ifndef RETRO_LIGHTGUN_ID_H
+#define RETRO_LIGHTGUN_ID_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+/**
+ * RetroLightgunId:
+ * @RETRO_LIGHTGUN_ID_X: The X axis of a lightgun.
+ * @RETRO_LIGHTGUN_ID_Y: The Y axis of a lightgun.
+ * @RETRO_LIGHTGUN_ID_TRIGGER: The trigger of a lightgun.
+ * @RETRO_LIGHTGUN_ID_CURSOR: The cursor of a lightgun.
+ * @RETRO_LIGHTGUN_ID_TURBO: The turbo button of a lightgun.
+ * @RETRO_LIGHTGUN_ID_PAUSE: The pause button of a lightgun.
+ * @RETRO_LIGHTGUN_ID_START: The start button of a lightgun.
+ *
+ * Represents the inputs for the Libretro lightgun.
+ */
+typedef enum
+{
+ RETRO_LIGHTGUN_ID_X,
+ RETRO_LIGHTGUN_ID_Y,
+ RETRO_LIGHTGUN_ID_TRIGGER,
+ RETRO_LIGHTGUN_ID_CURSOR,
+ RETRO_LIGHTGUN_ID_TURBO,
+ RETRO_LIGHTGUN_ID_PAUSE,
+ RETRO_LIGHTGUN_ID_START,
+} RetroLightgunId;
+
+G_END_DECLS
+
+#endif /* RETRO_LIGHTGUN_ID_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]