msmouse: send short messages if possible.
commitd7b7f526b18dacda8ee559dc18c13d4430a78b68
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 4 Jul 2016 09:42:55 +0000 (4 11:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jul 2016 07:24:31 +0000 (12 09:24 +0200)
treea3971920fcdaf08fa445999bde8ab0b4c52b3e9d
parent96d7c0720e6a9dff7a8fd61528e6b04bd9aa9673
msmouse: send short messages if possible.

Keep track of button changes.  Send the extended 4-byte messages for
three button mice only in case we have something to report for the
middle button.  Use the short 3-byte messages (original protocol for
two-button microsoft mouse) otherwise.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1467625375-31774-5-git-send-email-kraxel@redhat.com
backends/msmouse.c