LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mouse Handling in Ubuntu. (https://www.linuxquestions.org/questions/linux-newbie-8/mouse-handling-in-ubuntu-667095/)

shantanu.nalawade 09-02-2008 10:23 AM

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

Matir 09-02-2008 11:11 AM

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.

shantanu.nalawade 09-02-2008 09:58 PM

Quote:

Originally Posted by Matir (Post 3267282)
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.


All times are GMT -5. The time now is 06:55 AM.