[retro-gtk/count: 2/5] rumble-effect: Drop the COUNT value




commit 2f24dc78534f286dc8a682af5f0b5482d7055992
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Sep 11 09:49:55 2020 +0200

    rumble-effect: Drop the COUNT value
    
    It's not per-se a value and hence shouldn't be presented as such.

 shared/retro-rumble-effect.h  | 2 --
 tests/retro-test-controller.c | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/shared/retro-rumble-effect.h b/shared/retro-rumble-effect.h
index 5991d844..80e6513d 100644
--- a/shared/retro-rumble-effect.h
+++ b/shared/retro-rumble-effect.h
@@ -18,7 +18,6 @@ GType retro_rumble_effect_get_type (void) G_GNUC_CONST;
  * RetroRumbleEffect:
  * @RETRO_RUMBLE_EFFECT_STRONG: the strong rumble effect
  * @RETRO_RUMBLE_EFFECT_WEAK: the weak rumble effect
- * @RETRO_RUMBLE_EFFECT_COUNT: the number of rumble effects
  *
  * Represents the strength of the rumble effect.
  */
@@ -26,7 +25,6 @@ typedef enum
 {
   RETRO_RUMBLE_EFFECT_STRONG,
   RETRO_RUMBLE_EFFECT_WEAK,
-  RETRO_RUMBLE_EFFECT_COUNT,
 } RetroRumbleEffect;
 
 G_END_DECLS
diff --git a/tests/retro-test-controller.c b/tests/retro-test-controller.c
index a7713ace..af241720 100644
--- a/tests/retro-test-controller.c
+++ b/tests/retro-test-controller.c
@@ -22,6 +22,7 @@
 
 #define RETRO_ANALOG_ID_INDEX_COUNT 4
 #define RETRO_ANALOG_ID_INDEX(id, index) ((index << 1) | id)
+#define RETRO_RUMBLE_EFFECT_COUNT (RETRO_RUMBLE_EFFECT_WEAK + 1)
 
 struct _RetroTestController
 {


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