Originally Posted by Matir
The kernel handles the hardware events and makes generic mouse layer events available on special device files in /dev/input. Most often, these are then handled by the X server to translate into the movement and clicks you see on the screen.
Thanks alot for your reply.
Actually i wanted to display a second cursor on the screen and capture it's events like left click cursor position and all.
I want to do all of this in C. Can you please help me out with this.
I'm not aware as to how to send events to the kernel and display the mouse on the screen.
I know for displaying i need to use GTK.
Also for event sending i dont want to use the uinput driver is it possible without the uinput driver?
If not please tell me how it is done using the uinput driver for a secondary cursor.