[retro-gtk] controller-type: Add the count value



commit 6ea0807224d44e3509c1bccee9099146f66bf9ca
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Oct 29 21:27:10 2017 +0100

    controller-type: Add the count value

 retro-gtk/retro-controller-type.c |    1 +
 retro-gtk/retro-controller-type.h |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/retro-controller-type.c b/retro-gtk/retro-controller-type.c
index 63d8ef5..a65b02d 100644
--- a/retro-gtk/retro-controller-type.c
+++ b/retro-gtk/retro-controller-type.c
@@ -16,6 +16,7 @@ retro_controller_type_get_type (void)
       { RETRO_CONTROLLER_TYPE_LIGHTGUN, "RETRO_CONTROLLER_TYPE_LIGHTGUN", "lightgun" },
       { RETRO_CONTROLLER_TYPE_ANALOG, "RETRO_CONTROLLER_TYPE_ANALOG", "analog" },
       { RETRO_CONTROLLER_TYPE_POINTER, "RETRO_CONTROLLER_TYPE_POINTER", "pointer" },
+      { RETRO_CONTROLLER_TYPE_COUNT, "RETRO_CONTROLLER_TYPE_COUNT", "count" },
       { RETRO_CONTROLLER_TYPE_TYPE_MASK, "RETRO_CONTROLLER_TYPE_TYPE_MASK", "type-mask" },
       { 0, NULL, NULL },
     };
diff --git a/retro-gtk/retro-controller-type.h b/retro-gtk/retro-controller-type.h
index 0b3dd0f..b7103b7 100644
--- a/retro-gtk/retro-controller-type.h
+++ b/retro-gtk/retro-controller-type.h
@@ -24,6 +24,7 @@ GType retro_controller_type_get_type (void) G_GNUC_CONST;
  * @RETRO_CONTROLLER_TYPE_LIGHTGUN: a lightgun
  * @RETRO_CONTROLLER_TYPE_ANALOG: a gamepad with analog sticks
  * @RETRO_CONTROLLER_TYPE_POINTER: a screen pointer
+ * @RETRO_CONTROLLER_TYPE_COUNT: the number of types
  * @RETRO_CONTROLLER_TYPE_TYPE_MASK: a mask to get the super type of a derived one
  *
  * Represents the base types for Libretro controllers.
@@ -37,6 +38,7 @@ typedef enum
   RETRO_CONTROLLER_TYPE_LIGHTGUN,
   RETRO_CONTROLLER_TYPE_ANALOG,
   RETRO_CONTROLLER_TYPE_POINTER,
+  RETRO_CONTROLLER_TYPE_COUNT,
   RETRO_CONTROLLER_TYPE_TYPE_MASK = 0xff,
 } RetroControllerType;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]