Hi mighty netbsd-users,

For a personal project, I'm trying to find the right way to detect
and act on raw (or raw-ish) keyboard events on a NetBSD system not
running X11.

After spending more hours than I'd like to admit browsing the
manpages and source code and doing some small experiments, I have
formed a foggy notion that it can be done by issuing a WSKBDIO_GETMAP
ioctl to get the key map and then using it to interpret what I'd
read from a non-blocking /dev/wskbd.

But before I sank even more hours in confused attempts to figure
out how to actually do this, I thought I'd ask if anyone here could
perhaps provide some further guidance.

Many thanks,
Pouya

Reply via email to