]> Pileus Git - ~andy/gtk/commit
add prot struct member to hold masks for detecting the start of a protocol
authorJames Henstridge <james@daa.com.au>
Sat, 9 Dec 2000 11:10:41 +0000 (11:10 +0000)
committerJames Henstridge <jamesh@src.gnome.org>
Sat, 9 Dec 2000 11:10:41 +0000 (11:10 +0000)
commit21430de47d7f02f0a53b1e11f959a6d100bc52c7
tree578d77348cabae016f9fe2704bd3b71d94959956
parenteccd33b2e7b2fd36eff5bb463b80cad11a27c5f6
add prot struct member to hold masks for detecting the start of a protocol

2000-12-09  James Henstridge  <james@daa.com.au>

        * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
        member to hold masks for detecting the start of a protocol packet.
        (mouse_devs): add packet start masks for ps2 and ms device types.
        Left the mask for fidmour blank, as I have no idea what it should
        be.
        (handle_mouse_io): skip bytes until we get to the start of a
        packet.  My Logitech mouse seems to be passing an extra NULL pad
        byte, and GPM does a similar thing here.
        (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
        this is the ms mouse driver.
        (gdk_fb_mouse_ms_packet): fix up button handling, which was
        completely broken except for button1.  It was checking the wrong
        bit in the packet for the status of the right mouse button, and
        wrongly assuming right == button2 rather than 3.  I fixed that and
        also added support for middle button (button2).
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/linux-fb/gdkmouse-fb.c