aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-15 12:26:02 +0200
committerJavier <dev.git@javispedro.com>2022-04-15 12:26:02 +0200
commit6af29dacaaea968955ca1690037a9f6e9e0fb0ff (patch)
tree198a5767bddb241579af09c0153074d8dcdd9f9f /mousetsr.c
parent0f0a806e22895c5b7a6244e951c4f475a25184f8 (diff)
downloadvbados-6af29dacaaea968955ca1690037a9f6e9e0fb0ff.tar.gz
vbados-6af29dacaaea968955ca1690037a9f6e9e0fb0ff.zip
add log msgs for non-detection of ps2 wheel
Diffstat (limited to 'mousetsr.c')
-rw-r--r--mousetsr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mousetsr.c b/mousetsr.c
index b9e9fc7..b9fad9e 100644
--- a/mousetsr.c
+++ b/mousetsr.c
@@ -947,11 +947,13 @@ static void reset_mouse_hardware()
#if USE_WHEEL
if (data.usewheel && ps2m_detect_wheel()) {
- // Detect wheel also reinitializes the mouse to the proper packet size
+ dlog_puts("PS/2 wheel detected");
data.haswheel = true;
+ // Detect wheel also reinitializes the mouse to the proper packet size
} else {
- // Otherwise do an extra reset to return back to initial state, just in case
+ dlog_puts("PS/2 wheel NOT detected");
data.haswheel = false;
+ // Otherwise do an extra reset to return back to initial state, just in case
ps2m_init(PS2M_PACKET_SIZE_PLAIN);
}
#else