Is there a convenient way to get mouse deltas (e.g. mickeys) under X/linux?
I know that I could read from /dev/input/mice but that requires root access and seems a bit to low level for me.
Any idea?
Is there a convenient way to get mouse deltas (e.g. mickeys) under X/linux?
I know that I could read from /dev/input/mice but that requires root access and seems a bit to low level for me.
Any idea?
If this is for a game, i.e. an application with an actual X window, the typical approach used to be:
I write "used to be" because there might be better ways to solve this now, haven't looked into it for a while.
This of course won't give you a resolution that is higher than what X is reporting to applications, i.e. pixels. If you're after sub-pixel reporting, I think you need to go lower, perhaps read the device directly as you suggest.