Mouse Handling in Ubuntu.
I've installed ubuntu on my computer and i wanted to know how exactly it handles the mouse events. I actually want to desing a mouse driver for my application in C. Any help would be appreciated.
Thank you |
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.
|
Quote:
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. |
All times are GMT -5. The time now is 06:55 AM. |