diff options
author | Nathan Woods <npwoods@mess.org> | 2007-12-26 21:20:34 +0000 |
---|---|---|
committer | Nathan Woods <npwoods@mess.org> | 2007-12-26 21:20:34 +0000 |
commit | eb5699299c2f8ac059da1cfb9957c2526468a380 (patch) | |
tree | ee106bf8201ce4fb5a81e0de004d081ae957eaee /src/emu | |
parent | 08f8fbf3487f7908a49eeaaf87656b8a4d8a6ec1 (diff) |
Changed an unamed enumeration to a named one (input_seq_type)
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/inptport.c | 4 | ||||
-rw-r--r-- | src/emu/inptport.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c index ff17aa3d148..f3a7793ad1d 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -2598,7 +2598,7 @@ const char *input_port_name(const input_port_entry *port) } -const input_seq *input_port_seq(input_port_entry *port, int seqtype) +const input_seq *input_port_seq(input_port_entry *port, input_seq_type seqtype) { static const input_seq ip_none = SEQ_DEF_0; input_seq *portseq; @@ -2639,7 +2639,7 @@ const input_seq *input_port_seq(input_port_entry *port, int seqtype) } -const input_seq *input_port_default_seq(int type, int player, int seqtype) +const input_seq *input_port_default_seq(int type, int player, input_seq_type seqtype) { static const input_seq ip_none = SEQ_DEF_0; diff --git a/src/emu/inptport.h b/src/emu/inptport.h index 31fc3ce21c9..0e2fd0a37ed 100644 --- a/src/emu/inptport.h +++ b/src/emu/inptport.h @@ -36,13 +36,13 @@ /* sequence types for input_port_seq() call */ -enum +enum _input_seq_type { SEQ_TYPE_STANDARD = 0, SEQ_TYPE_INCREMENT = 1, SEQ_TYPE_DECREMENT = 2 }; - +typedef enum _input_seq_type input_seq_type; /* conditions for DIP switches */ enum @@ -876,8 +876,8 @@ read16_handler port_tag_to_handler16(const char *tag); read32_handler port_tag_to_handler32(const char *tag); read64_handler port_tag_to_handler64(const char *tag); const char *input_port_name(const input_port_entry *in); -const input_seq *input_port_seq(input_port_entry *in, int seqtype); -const input_seq *input_port_default_seq(int type, int player, int seqtype); +const input_seq *input_port_seq(input_port_entry *in, input_seq_type seqtype); +const input_seq *input_port_default_seq(int type, int player, input_seq_type seqtype); int input_port_condition(const input_port_entry *in); void input_port_set_changed_callback(int port, UINT32 mask, void (*callback)(void *, UINT32, UINT32), void *param); |