summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/pc_kbd/hle_mouse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/pc_kbd/hle_mouse.cpp')
-rw-r--r--src/devices/bus/pc_kbd/hle_mouse.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/bus/pc_kbd/hle_mouse.cpp b/src/devices/bus/pc_kbd/hle_mouse.cpp
index 9cb96f94983..507a3be8d94 100644
--- a/src/devices/bus/pc_kbd/hle_mouse.cpp
+++ b/src/devices/bus/pc_kbd/hle_mouse.cpp
@@ -37,7 +37,6 @@
#include "emu.h"
#include "hle_mouse.h"
-#define LOG_GENERAL (1U << 0)
#define LOG_RXTX (1U << 1)
#define LOG_COMMAND (1U << 2)
#define LOG_REPORT (1U << 3)
@@ -104,8 +103,8 @@ void hle_ps2_mouse_device::device_start()
set_pc_kbdc_device();
- m_serial = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(hle_ps2_mouse_device::serial), this));
- m_sample = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(hle_ps2_mouse_device::sample), this));
+ m_serial = timer_alloc(FUNC(hle_ps2_mouse_device::serial), this);
+ m_sample = timer_alloc(FUNC(hle_ps2_mouse_device::sample), this);
}
void hle_ps2_mouse_device::device_reset()
@@ -155,7 +154,7 @@ void hle_ps2_mouse_device::resume()
}
}
-void hle_ps2_mouse_device::serial(void *ptr, s32 param)
+void hle_ps2_mouse_device::serial(s32 param)
{
// host may inhibit device communication by holding the clock low for 100µs
if (!clock_signal() && clock_held(100))
@@ -474,7 +473,7 @@ void hle_ps2_mouse_device::command(u8 const command)
}
}
-void hle_ps2_mouse_device::sample(void *ptr, s32 param)
+void hle_ps2_mouse_device::sample(s32 param)
{
// read mouse state
s16 const x = m_port_x_axis->read();