At 25 August, 2003 oleander wrote:
> hi dmitry-
> 
> you might try making a program to read the device /dev/input/event* or
> /dev/input/mouse*, if you've built your kernel with input core support
> (CONFIG_INPUT, CONFIG_INPUT_MOUSEDEV, CONFIG_INPUT_EVDEV). i have no
> idea what the data structure is on those devices, but when i was
> hooking up my tablet i saw they spit garbage whenever i moved the
> mouse or pressed a button anywhere in X :)

AFAIK, /dev/input/mouse* only works for USB mice in 2.4.* kernels. PS2
mouse users have to make do with /dev/misc/psaux. And, unfortunately,
only one program can read from the device at a time.

You'll probably have to use X calls to watch the mouse's state.

-- 
Andrew Farmer
[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list

Reply via email to