Index: [thread] [date] [subject] [author]
  From: Andrew Apted <ajapted@netspace.net.au>
  To  : ggi-develop@eskimo.com
  Date: Sat, 22 May 1999 11:25:52 +1000

Re: Independent Multihead

Marcus writes:

>  John Weismiller wrote:
>  > 
>  > What background info do I need to know to make a successful keyboard driver? 
>  > I guess I just need to fill out the inp-> structure as in the initialization
>  > routines?  (I will play around with this some more)
>  
>  Yep, it's quite simple. If you take input-mouse or input-linux-kbd and
>  remove all the parsing code you'll see that there really is not much 
>  code required to write a basic input driver.
>  
>  I'd start by only filling in the "label" and "button" field of the key 
>  vents, as those two fields are always the same for any given physical
>  key.
>  Then when you have that working you'll need add code to correctly encode
>  the "modifiers" and "sym" fields.
 
And the `inputdump' program is good for debugging input drivers (it's in
libggi/programs/util directory).  </shameless-plug-mode> :-)

Cheers,
___________________________________________________
                                               \  /
  Andrew Apted   <ajapted@netspace.net.au>      \/
 

Index: [thread] [date] [subject] [author]