Subject: Re: no one would help me? (was: /dev/wskbd?)
To: David Brownlee <abs@netbsd.org>
From: None <wojtek@wojtek.3miasto.net>
List: netbsd-users
Date: 06/13/2001 12:54:16
> 	Would that be 12 characters per press/release?
probably.. characters 0x00 isn't displayed so it looks right. thanks!
 
> 	sys/dev/wscons/wsconsio.h defines:
> 
> /*
>  * Common event structure (used by keyboard and mouse)
>  */
> struct wscons_event {
> 	u_int           type;
> 	int             value;
> 	struct timespec time;
> };
> 
> /* Event type definitions.  Comment for each is information in value. */
> #define WSCONS_EVENT_KEY_UP             1       /* key code */
> #define WSCONS_EVENT_KEY_DOWN           2       /* key code */
> #define WSCONS_EVENT_ALL_KEYS_UP        3       /* void */
> #define WSCONS_EVENT_MOUSE_UP           4       /* button # (leftmost = 0) */
> #define WSCONS_EVENT_MOUSE_DOWN         5       /* button # (leftmost = 0)  */
> #define WSCONS_EVENT_MOUSE_DELTA_X      6       /* X delta amount */
> #define WSCONS_EVENT_MOUSE_DELTA_Y      7       /* Y delta amount */
> #define WSCONS_EVENT_MOUSE_ABSOLUTE_X   8       /* X location */
> #define WSCONS_EVENT_MOUSE_ABSOLUTE_Y   9       /* Y location */
> #define WSCONS_EVENT_MOUSE_DELTA_Z      10      /* Z delta amount */
> #define WSCONS_EVENT_MOUSE_ABSOLUTE_Z   11      /* Z location */
> 
> 	So I'd expect to see something like 1,code,timespec for a keypress
> 	(code would be taken from /usr/include/dev/wscons/wsksymdef.h)

thank you