[retro-gtk/wip/aplazas/0.13: 8/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: 8/14] Port LightgunId to C
- Date: Wed, 6 Sep 2017 10:21:39 +0000 (UTC)
commit 1c7c43c0d0eda40666acfc700bfd48de0a87059f
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Sep 5 14:57:40 2017 +0200
Port LightgunId to C
retro-gtk/Makefile.am | 1 +
retro-gtk/input/device.vala | 13 -------------
retro-gtk/retro-gtk.h | 1 +
retro-gtk/retro-lightgun-id.h | 35 +++++++++++++++++++++++++++++++++++
4 files changed, 37 insertions(+), 13 deletions(-)
---
diff --git a/retro-gtk/Makefile.am b/retro-gtk/Makefile.am
index f15cdb1..bf5649c 100644
--- a/retro-gtk/Makefile.am
+++ b/retro-gtk/Makefile.am
@@ -112,6 +112,7 @@ retro_gtkinclude_HEADERS = \
retro-gtk.h \
retro-gtk-vala.h \
retro-joypad-id.h \
+ retro-lightgun-id.h \
retro-mouse-id.h \
$(NULL)
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-gtk.h b/retro-gtk/retro-gtk.h
index c3c4db7..fbec775 100644
--- a/retro-gtk/retro-gtk.h
+++ b/retro-gtk/retro-gtk.h
@@ -8,6 +8,7 @@
#include "retro-device-type.h"
#include "retro-gtk-vala.h"
#include "retro-joypad-id.h"
+#include "retro-lightgun-id.h"
#include "retro-mouse-id.h"
#endif
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]