Subject: howto capture events generated by uhid(4) devices
To: None <port-i386@netbsd.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: port-i386
Date: 12/18/2006 11:29:59
G'day,

what is the best strategy to capture uhid generated events? 

I've a powermate device and would like to receive notification whenever the 
knob was turned or a button pushed.

I wrote some test code investigating the use of kqueue's EVFILT_READ and 
EVFILT_WRITE filter. Both return kevent = 0 whenever the device was 
activated. I guess this is fine and should work, but wonder if this is the 
right thing to do?

cheerio Berndt