nanogui: mou_ser.c


Previous by date: 1 Jan 2003 13:50:58 -0000 Re: Drawing Iamge from buffer, Jordan Crouse
Next by date: 1 Jan 2003 13:50:58 -0000 FLNX -> FLTK 1.1.2, Jean-Marc Lienher
Previous in thread:
Next in thread:

Subject: [nanogui] mou_ser.c
From: "Murphy Chen" ####@####.####
Date: 1 Jan 2003 13:50:58 -0000
Message-Id: <1041428591.54538.murphychen@mail2000.com.tw>

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

Previous by date: 1 Jan 2003 13:50:58 -0000 Re: Drawing Iamge from buffer, Jordan Crouse
Next by date: 1 Jan 2003 13:50:58 -0000 FLNX -> FLTK 1.1.2, Jean-Marc Lienher
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.