summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.c
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2008-08-20 11:31:21 +0000
committer Nathan Woods <npwoods@mess.org>2008-08-20 11:31:21 +0000
commit57d3cb91e366be87cc03633a2d18607622a16670 (patch)
tree28c19e04879ddabfce37e3fa257ea6649a8484b4 /src/emu/inptport.c
parentc6e6c95244a660528509384810109a6411e88095 (diff)
MESS-specific fixes
Diffstat (limited to 'src/emu/inptport.c')
-rw-r--r--src/emu/inptport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index 7693c0e2555..a39286d4752 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -2385,6 +2385,7 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co
input_field_config *curfield = NULL;
input_port_config *curport = NULL;
input_port_value maskbits = 0;
+ UINT16 category; /* (MESS-specific) category */
/* loop over tokens until we hit the end */
while (entrytype != INPUT_TOKEN_END)
@@ -2936,7 +2937,7 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co
curfield->name = input_port_string_from_token(*ipt++);
break;
- /* configuration setting */
+ /* category setting */
case INPUT_TOKEN_CATEGORY_SETTING:
TOKEN_UNGET_UINT32(ipt);
if (curfield == NULL)
@@ -2946,8 +2947,9 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co
TOKEN_SKIP_STRING(ipt);
break;
}
- TOKEN_GET_UINT64_UNPACK2(ipt, entrytype, 8, defval, 32);
+ TOKEN_GET_UINT64_UNPACK3(ipt, entrytype, 8, defval, 32, category, 16);
cursetting = setting_config_alloc(curfield, defval & curfield->mask, input_port_string_from_token(*ipt++));
+ cursetting->category = category;
break;
/* analog adjuster definition */