I'd like to put a simple mouse support to my program.
The easiest way I can think of is polling /dev/mouse repeatedly.
However, without some delay between polls, this approach ties up
the system and in fact does not make much sense because the maximum
sampling rate is only about 50 Hz.
Unfortunately, the standard "sleep" cannot be used as a delay routine
since 1 sec interval between polls is too long.
Does anybody have better idea/technique?
Any input will be greatly appreciated.
Thanks
--Jay
--
Hipress/Spectra/Sherlock/Pils Linux System Manager. (206) 543-7543
Physics, U. of Washington, Seattle, WA 98195