nanogui: Nano-X without a mouse


Previous by date: 17 Oct 2006 16:23:59 +0100 Re: Touchscreen orientation, Greg Haerr
Next by date: 17 Oct 2006 16:23:59 +0100 Re: Touchscreen orientation, Ashwin Bihari
Previous in thread: 17 Oct 2006 16:23:59 +0100 Re: Nano-X without a mouse, Greg Haerr
Next in thread:

Subject: RE: [nanogui] Nano-X without a mouse
From: "Martin Kajdas" ####@####.####
Date: 17 Oct 2006 16:23:59 +0100
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC2291585@mkmail.MKPROD.COM>

That is what I was afraid of but expected.
I can modify the code but I just wanted to know if this is the only way and there is no easier way (some trick).
Thanks for the -2 hint.
I will report the outcome when I get it done.
Martin


-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Saturday, October 14, 2006 12:46 PM
To: Martin Kajdas; Ashwin Bihari
Cc: ####@####.####
Subject: Re: [nanogui] Nano-X without a mouse


> Yes, I am compiling nano-X myself and using SERMOUSE=Y, and I still want
to use that mouse except make it optional.
> If the mouse is there I want to use it, and if not then don't.
> The same goes for the keyboard, because I have a serial (RS232) pad that
can emulate the keyboard and mouse operation as an input device.
> It all works fine when all 3 are connected, but the requirement is that
the RS232 pad can be used alone.
> I will try to play with config settings but the mouse and keyboard still
need to work when connected.

You'll need to hack the mouse and kbd drivers so they
return a file descriptor when the device is present, but
return -2 (rather than -1) when not.  The -2 return allows the
srvmain.c code to ignore the driver not present return.

Regards,

Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####


Previous by date: 17 Oct 2006 16:23:59 +0100 Re: Touchscreen orientation, Greg Haerr
Next by date: 17 Oct 2006 16:23:59 +0100 Re: Touchscreen orientation, Ashwin Bihari
Previous in thread: 17 Oct 2006 16:23:59 +0100 Re: Nano-X without a mouse, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.