[nanogui] mouse server

From: "Greg Haerr" (greg@censoft.com)
To: "Murphy Chen"
Sent: Thursday, January 02, 2003 11:29 AM
Subject: Re: [nanogui] mou_ser.c

Murphy - thanks for the bug report.  I'll change this in
CVS.

Regards,

Greg


----- Original Message -----
From: "Murphy Chen" (murphychen@mail2000.com.tw)
To: (greg@censoft.com); (nanogui@linuxhacker.org)
Sent: Wednesday, January 01, 2003 5:43 AM
Subject: [nanogui] mou_ser.c


Dear Greg,

  When I use Logitech mouse connected via serial port, the mouse driver does not work.
  After looking at mou_ser.c and reading the mouse specification at http://www.hut.fi/~then/mytexts/mouse.html,
  I think the mouse driver mou_ser.c may need to be modified from
        termios.c_cflag |= CS8;
  to
        if(!strcmp(type, "ps2") || (!strcmp(type, "pc") ) {
                termios.c_cflag |= CS8;
        } else {
                termios.c_cflag |= CS7;
        }
  ,because Microsoft serial mouse("ms") and Logitech mouse("logi") use 7 databits,
  on the other hand, Mouse systems mouse("pc") and PS/2 mouse("ps2") use 8 databits.
  After the modification, my mouse (use "ms" configuration) works happily.

Happy New Year,
Murphy