Update the last click time only if there actually was a click - this fixes the wrong

double click as reported in bug #1015.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21544 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-07-03 13:00:46 +00:00
parent 1e5e237d6e
commit fb167ac3d5
@@ -131,9 +131,10 @@ ps2_packet_to_movement(mouse_cookie *cookie, uint8 packet[], mouse_movement *pos
cookie->click_count++; cookie->click_count++;
else else
cookie->click_count = 1; cookie->click_count = 1;
}
cookie->click_last_time = currentTime; cookie->click_last_time = currentTime;
}
cookie->buttons_state = buttons; cookie->buttons_state = buttons;
if (cookie->packet_size == PS2_PACKET_INTELLIMOUSE) { if (cookie->packet_size == PS2_PACKET_INTELLIMOUSE) {