From 86b8a8828aed8f2b57a3acbe78424e48d27b7688 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 23 Sep 2004 06:45:20 +0000 Subject: [PATCH] Set the wheel_delta to 0, otherwise we could send "spurious" wheel movements git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9032 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c b/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c index e28e6efd13..83525d9c69 100644 --- a/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c +++ b/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c @@ -276,6 +276,7 @@ packet_to_movement(uint8 packet[], mouse_pos *pos) pos->clicks = sClickCount; pos->modifiers = 0; pos->time = currentTime; + pos->wheel_delta = 0; } }