summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-12-24 11:11:24 -0800
committerMichael Pavone <pavone@retrodev.com>2018-12-24 11:11:24 -0800
commitc53d863d26d6d77fdfc792120a5c5c3e17c8d671 (patch)
tree72879ee909404c13f23b713ac8ebbaf7b55e0c83
parent6cb4560e3d8d22203dbc9f0c651a482188ce3b25 (diff)
Re-order IO device type enum so "None" is selected when no device is specified for a port
-rw-r--r--io.c4
-rw-r--r--io.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index f306f06..ffbda59 100644
--- a/io.c
+++ b/io.c
@@ -26,6 +26,7 @@
#define MIN_POLL_INTERVAL 6840
const char * device_type_names[] = {
+ "None",
"SMS gamepad",
"3-button gamepad",
"6-button gamepad",
@@ -38,8 +39,7 @@ const char * device_type_names[] = {
"EA 4-way Play cable A",
"EA 4-way Play cable B",
"Sega Parallel Transfer Board",
- "Generic Device",
- "None"
+ "Generic Device"
};
#define GAMEPAD_TH0 0
diff --git a/io.h b/io.h
index 981838b..23affc7 100644
--- a/io.h
+++ b/io.h
@@ -11,6 +11,7 @@
#include "serialize.h"
enum {
+ IO_NONE,
IO_GAMEPAD2,
IO_GAMEPAD3,
IO_GAMEPAD6,
@@ -23,8 +24,7 @@ enum {
IO_EA_MULTI_A,
IO_EA_MULTI_B,
IO_SEGA_PARALLEL,
- IO_GENERIC,
- IO_NONE
+ IO_GENERIC
};
typedef struct {