From 34b3ab9841df976415b9f94366d3506076c8e90c Mon Sep 17 00:00:00 2001 From: Zsolt Vasvari Date: Mon, 3 Mar 2008 05:17:57 +0000 Subject: Added running_machine* to the CUSTOM_INPUT callback - updated drivers to use it --- src/emu/inptport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emu/inptport.h') diff --git a/src/emu/inptport.h b/src/emu/inptport.h index b71fab797cf..eee620b8b15 100644 --- a/src/emu/inptport.h +++ b/src/emu/inptport.h @@ -40,7 +40,7 @@ /* macro for a custom callback functions (PORT_CUSTOM) */ -#define CUSTOM_INPUT(name) UINT32 name(void *param) +#define CUSTOM_INPUT(name) UINT32 name(running_machine *machine, void *param) /* macro for port changed callback functions (PORT_CHANGED) */ #define INPUT_CHANGED(name) void name(running_machine *machine, void *param, UINT32 oldval, UINT32 newval) @@ -501,7 +501,7 @@ typedef struct _input_port_init_params input_port_init_params; /* a custom input port callback function */ -typedef UINT32 (*input_port_custom_func)(void *param); +typedef UINT32 (*input_port_custom_func)(running_machine *machine, void *param); typedef void (*input_port_changed_func)(running_machine *machine, void *param, UINT32 oldval, UINT32 newval); -- cgit v1.2.3-70-g09d2