diff options
author | 2008-03-03 05:17:57 +0000 | |
---|---|---|
committer | 2008-03-03 05:17:57 +0000 | |
commit | 34b3ab9841df976415b9f94366d3506076c8e90c (patch) | |
tree | 67a3519e3c5a25bc99e7ac8c6f32ad194cee567f /src/emu/inptport.h | |
parent | 62466dd08f6c56a02f2c4ed67048fcd7da68acc3 (diff) |
Added running_machine* to the CUSTOM_INPUT callback - updated drivers to use it
Diffstat (limited to 'src/emu/inptport.h')
-rw-r--r-- | src/emu/inptport.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |