LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2008, 11:23 AM   #1
shantanu.nalawade
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Smile 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
 
Old 09-02-2008, 12:11 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
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.
 
Old 09-02-2008, 10:58 PM   #3
shantanu.nalawade
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by Matir View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
handling 1mb adsl + 1mb adsl on one ubuntu router? sarthor Linux - Server 0 10-03-2007 07:57 AM
Installing/deinstalling packages under Ubuntu & handling boot problems with Grub ... rakeshj Linux - Software 2 07-15-2007 03:27 PM
[HELP!]problems about mouse in Ubuntu andrewnow Linux - Hardware 3 12-23-2006 02:57 PM
Desperate for help with a PS/2 Mouse on Ubuntu! Please help! luminousnerd Linux - Hardware 8 08-15-2005 05:54 PM
Ubuntu mouse problem limebox Linux - Hardware 3 09-28-2004 02:03 AM


All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration