mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Changed MESS's hooks used by natural keyboard support, eliminating MESS's need
for input_port_set_digital_value()
This commit is contained in:
parent
66445ebdf4
commit
212d7e36d4
@ -2813,7 +2813,7 @@ profiler_mark(PROFILER_INPUT);
|
|||||||
/* (MESS-specific) check for disabled keyboard */
|
/* (MESS-specific) check for disabled keyboard */
|
||||||
if (portentry->type == IPT_KEYBOARD && osd_keyboard_disabled())
|
if (portentry->type == IPT_KEYBOARD && osd_keyboard_disabled())
|
||||||
continue;
|
continue;
|
||||||
#endif
|
#endif /* MESS */
|
||||||
/* skip locked-out coin inputs */
|
/* skip locked-out coin inputs */
|
||||||
if (portentry->type >= IPT_COIN1 && portentry->type <= IPT_COIN8 && coinlockedout[portentry->type - IPT_COIN1])
|
if (portentry->type >= IPT_COIN1 && portentry->type <= IPT_COIN8 && coinlockedout[portentry->type - IPT_COIN1])
|
||||||
{
|
{
|
||||||
@ -2885,6 +2885,11 @@ profiler_mark(PROFILER_INPUT);
|
|||||||
/* note that analog ports are handled instantaneously at port read time */
|
/* note that analog ports are handled instantaneously at port read time */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MESS
|
||||||
|
/* hook for MESS's natural keyboard support */
|
||||||
|
mess_input_port_update_hook(portnum, &portinfo->digital);
|
||||||
|
#endif /* MESS */
|
||||||
|
|
||||||
/* call changed handlers */
|
/* call changed handlers */
|
||||||
for (changed = portinfo->changedinfo; changed; changed = changed->next)
|
for (changed = portinfo->changedinfo; changed; changed = changed->next)
|
||||||
if (input_port_condition(changed->portentry))
|
if (input_port_condition(changed->portentry))
|
||||||
@ -2902,11 +2907,6 @@ profiler_mark(PROFILER_INPUT);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MESS
|
|
||||||
/* less MESS to MESSy things */
|
|
||||||
inputx_update(machine);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* handle playback/record */
|
/* handle playback/record */
|
||||||
for (portnum = 0; portnum < MAX_INPUT_PORTS; portnum++)
|
for (portnum = 0; portnum < MAX_INPUT_PORTS; portnum++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user