Subject: Re: howto capture events generated by uhid(4) devices
To: Berndt Josef Wulf <wulf@ping.net.au>
From: Quentin Garnier <cube@cubidou.net>
List: port-i386
Date: 12/18/2006 01:04:41
--cqG5pBpskktEuCrX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 18, 2006 at 11:29:59AM +1030, Berndt Josef Wulf wrote:
> G'day,
>=20
> what is the best strategy to capture uhid generated events?=20
>=20
> I've a powermate device and would like to receive notification whenever t=
he=20
> knob was turned or a button pushed.
>=20
> I wrote some test code investigating the use of kqueue's EVFILT_READ and=
=20
> EVFILT_WRITE filter. Both return kevent =3D 0 whenever the device was=20
> activated. I guess this is fine and should work, but wonder if this is th=
e=20
> right thing to do?

Aren't usbhidaction(8) and associates (such as usbhid(3)) what you're
looking for?

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--cqG5pBpskktEuCrX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBRYXbGdgoQloHrPnoAQLWbwf/RcMk1RW3lMbmmeVvh7igqANrxjt7aVQb
A6u109eae5zljDJCfCagX+07i06ZuZgPgFCDsuwX1eE0IxB4MSYJ+JlX1huA1x2e
QbK8faOLDCdtadqZbjLcoGUpeOz85YHCaaYypN9/AnFZhX0qLvTYrpLTKsgESdkt
419u9QHtkrE2YdWlY2f+2wQ6XQQpAVnAr8nQJlEVu6uyuQszMv8Y4p2mwCFfB0A1
CftW09cqSAHGoxdsYh2VE3VqVQlKD/YyfDWxLucekpgMJmxMYPVgoh5sPFKEEeiW
XZ7RaJ61LTcC3zscVy4H4ghSo8McHzEvyswp2MloCxMSeGT/g+9Msg==
=aHyh
-----END PGP SIGNATURE-----

--cqG5pBpskktEuCrX--