From c53d863d26d6d77fdfc792120a5c5c3e17c8d671 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 24 Dec 2018 11:11:24 -0800 Subject: Re-order IO device type enum so "None" is selected when no device is specified for a port --- io.c | 4 ++-- io.h | 4 ++-- 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 { -- cgit v1.2.3