From 212d7e36d4f65db45cd1671211479aeb802c81f1 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Wed, 16 Apr 2008 01:43:37 +0000 Subject: [PATCH] Changed MESS's hooks used by natural keyboard support, eliminating MESS's need for input_port_set_digital_value() --- src/emu/inptport.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 60297456e8a..7429e28103d 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -2813,7 +2813,7 @@ profiler_mark(PROFILER_INPUT); /* (MESS-specific) check for disabled keyboard */ if (portentry->type == IPT_KEYBOARD && osd_keyboard_disabled()) continue; -#endif +#endif /* MESS */ /* skip locked-out coin inputs */ 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 */ } +#ifdef MESS + /* hook for MESS's natural keyboard support */ + mess_input_port_update_hook(portnum, &portinfo->digital); +#endif /* MESS */ + /* call changed handlers */ for (changed = portinfo->changedinfo; changed; changed = changed->next) 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 */ for (portnum = 0; portnum < MAX_INPUT_PORTS; portnum++) {