summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/inptport.h
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2011-02-25 09:01:47 +0000
committer Curt Coder <curtcoder@mail.com>2011-02-25 09:01:47 +0000
commita6876a99800c4a2440259c3c45a45c97963c19e0 (patch)
tree64102b7562d95f8bf98fd3f955f09ac065abe795 /src/emu/inptport.h
parent130a45928e34a9dfc0ab3f4b89915ba2a7be04df (diff)
Added overloaded input_port_read() for reading device owned input ports. [Curt Coder]
Diffstat (limited to 'src/emu/inptport.h')
-rw-r--r--src/emu/inptport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/inptport.h b/src/emu/inptport.h
index bd2159fa7de..01b04cfcca6 100644
--- a/src/emu/inptport.h
+++ b/src/emu/inptport.h
@@ -1137,6 +1137,9 @@ input_port_value input_port_read_direct(const input_port_config *port);
/* return the value of an input port specified by tag */
input_port_value input_port_read(running_machine *machine, const char *tag);
+/* return the value of an input port specified by tag */
+input_port_value input_port_read(running_machine *machine, device_t *device, const char *tag);
+
/* return the value of an input port specified by tag, or a default value if the port does not exist */
input_port_value input_port_read_safe(running_machine *machine, const char *tag, input_port_value defvalue);