Subject: Re: no one would help me? (was: /dev/wskbd?)
To: None <wojtek@wojtek.3miasto.net>
From: David Brownlee <abs@netbsd.org>
List: netbsd-users
Date: 06/13/2001 11:25:22
Would that be 12 characters per press/release?
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)
--
David/absolute -- www.netbsd.org: No hype required --
On Tue, 12 Jun 2001 wojtek@wojtek.3miasto.net wrote:
> what is format of /dev/wskbd? data? i've seen lots of chars every keypress
> or key release.
>
> is it the same format as stdin in RAW keyboard mode?
>
>