nanogui: Keyboard driver


Previous by date: 17 Oct 2002 18:04:19 -0000 Re: insert image, Greg Haerr
Next by date: 17 Oct 2002 18:04:19 -0000 Problems while compiling flnx for X11, michael_kay
Previous in thread: 17 Oct 2002 18:04:19 -0000 keyboard driver, vikas kedia
Next in thread:

Subject: Re: [nanogui] keyboard driver
From: "Greg Haerr" ####@####.####
Date: 17 Oct 2002 18:04:19 -0000
Message-Id: <064c01c27606$b1bf97c0$3aba46a6@xmission.com>

: i have to attach a simple matrix keyboard to my system ... there will be 
: a keyboard driver running which will simply scan the pins of keyboard 
: and if a key is pressed write a scan code into a buffer in the memory 
: (which is a FIFO) .. now how do i write a keyboard driver for 
: microwindows which will keep on checking that FIFO to see if it is empty 
: or not .. because currently what microwindows does is a select call for 
: all the fds and whichver isset it reads from that .. but here this 
: process will only work if i can attach a file descriptor to shared 
: memory .. can i do that??

Implement the Poll entry point instead, forget the file descriptor.
You'll have to modify nanox/srvmain.c to use the Poll entry
point, look for the #if MSDOS defines, DOS uses the Poll method
rather than select.


: other method i can think of is that i dont check for keyboard from 
: select call and after select call returns (by timeout or by an event) i 
: also check for keyboard buffer..

You'll have to set a manual timeout or select will hang forever.  Then
call the Poll entrypoint.

Regards,

Greg



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


Previous by date: 17 Oct 2002 18:04:19 -0000 Re: insert image, Greg Haerr
Next by date: 17 Oct 2002 18:04:19 -0000 Problems while compiling flnx for X11, michael_kay
Previous in thread: 17 Oct 2002 18:04:19 -0000 keyboard driver, vikas kedia
Next in thread:


Powered by ezmlm-browse 0.20.