diff options
Diffstat (limited to 'src/devices/bus/samcoupe/mouse/mouse.cpp')
-rw-r--r-- | src/devices/bus/samcoupe/mouse/mouse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/samcoupe/mouse/mouse.cpp b/src/devices/bus/samcoupe/mouse/mouse.cpp index e023d404997..324a9998a17 100644 --- a/src/devices/bus/samcoupe/mouse/mouse.cpp +++ b/src/devices/bus/samcoupe/mouse/mouse.cpp @@ -14,7 +14,7 @@ // DEVICE DEFINITIONS //************************************************************************** -DEFINE_DEVICE_TYPE(SAM_MOUSE, sam_mouse_device, "sam_mouse", "SAM Coupe Mouse Interface") +DEFINE_DEVICE_TYPE(SAM_MOUSE, sam_mouse_device, "sam_mouse", u8"SAM Coupé Mouse Interface") //------------------------------------------------- // input_ports - device-specific input ports @@ -64,7 +64,7 @@ sam_mouse_device::sam_mouse_device(const machine_config &mconfig, const char *ta void sam_mouse_device::device_start() { // allocate timer - m_reset = timer_alloc(); + m_reset = timer_alloc(FUNC(sam_mouse_device::reset_tick), this); // register for savestates save_item(NAME(m_mouse_index)); @@ -85,10 +85,10 @@ void sam_mouse_device::device_reset() } //------------------------------------------------- -// device_timer - handler timer events +// reset_tick - reset the mouse index //------------------------------------------------- -void sam_mouse_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) +TIMER_CALLBACK_MEMBER(sam_mouse_device::reset_tick) { m_mouse_index = 0; } |