summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/inptport.c')
-rw-r--r--src/emu/inptport.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index ab8d4d035a4..6d09f42bdf9 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -2904,7 +2904,7 @@ profiler_mark(PROFILER_INPUT);
#ifdef MESS
/* less MESS to MESSy things */
- inputx_update();
+ inputx_update(machine);
#endif
/* handle playback/record */
@@ -3361,6 +3361,22 @@ UINT32 input_port_read_safe(running_machine *machine, const char *tag, UINT32 de
/*************************************
*
+ * Input port writing
+ *
+ *************************************/
+
+void input_port_set_digital_value(running_machine *machine, int port_num, UINT32 value, UINT32 mask)
+{
+ /* used by MESS for natural keyboard input */
+ input_port_info *portinfo = &port_info[port_num];
+ portinfo->digital &= ~mask;
+ portinfo->digital |= value;
+}
+
+
+
+/*************************************
+ *
* Return position of crosshair axis
*
*************************************/