src/emu/inptport.c
| r1958 | r1959 | |
| 1984 | 1984 | while (entrytype != INPUT_TOKEN_END) |
| 1985 | 1985 | { |
| 1986 | 1986 | UINT32 mask, defval, type, val; |
| 1987 | #ifdef MESS |
| 1988 | UINT16 category; |
| 1989 | #endif /* MESS */ |
| 1987 | 1990 | |
| 1988 | 1991 | /* unpack the token from the first entry */ |
| 1989 | 1992 | TOKEN_GET_UINT32_UNPACK1(ipt, entrytype, 8); |
| r1958 | r1959 | |
| 2245 | 2248 | |
| 2246 | 2249 | case INPUT_TOKEN_CATEGORY_SETTING: |
| 2247 | 2250 | TOKEN_UNGET_UINT32(ipt); |
| 2248 | | TOKEN_GET_UINT64_UNPACK2(ipt, entrytype, 8, defval, 32); |
| 2251 | TOKEN_GET_UINT64_UNPACK3(ipt, entrytype, 8, defval, 32, category, 16); |
| 2249 | 2252 | port = input_port_initialize(param, IPT_CATEGORY_SETTING, modify_tag, 0, defval); |
| 2250 | 2253 | seq_index[0] = seq_index[1] = seq_index[2] = 0; |
| 2251 | 2254 | port->name = input_port_string_from_token(*ipt++); |
| 2255 | port->category = category; |
| 2252 | 2256 | break; |
| 2253 | 2257 | #endif /* MESS */ |
| 2254 | 2258 | |
src/emu/inptport.h
| r1958 | r1959 | |
| 849 | 849 | TOKEN_STRING(_name), |
| 850 | 850 | |
| 851 | 851 | #define PORT_CATEGORY_ITEM(_default,_name,_category) \ |
| 852 | | TOKEN_UINT64_PACK3(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32, _category, 32), \ |
| 852 | TOKEN_UINT64_PACK3(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32, _category, 16), \ |
| 853 | 853 | TOKEN_STRING(_name), |
| 854 | 854 | #endif /* MESS */ |
| 855 | 855 | |