LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-28-2003, 11:04 AM   #1
johan the olive
Member
 
Registered: Feb 2003
Posts: 98

Rep: Reputation: 15
Mice - how they work?


i can pretty much figure out how a mouse works on the ouside, but how does the computer interpret what is sent to it? in other words, how does it know that im clicking on mozilla and not konqueror?
 
Old 02-28-2003, 12:37 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
I could be wrong: every thing on the GUI is an object. When you click the keyboard or mouse, the system takes your input and remember them, and then send them to the appropriate object. There are times when you click on a window on top, the click sent to the one on the back, depending on how your window behaviour is set up.
 
Old 02-28-2003, 03:52 PM   #3
johan the olive
Member
 
Registered: Feb 2003
Posts: 98

Original Poster
Rep: Reputation: 15
but how does it differ from one object to another?
 
Old 02-28-2003, 04:13 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
each object has co-ordinants. think x,y grid, x goes up, y goes right, the bottom-left corner of your screen as (0,0) and top right as (somenumber,somenumber)the x-server knows if it receives a mouse-down(click) at co-ordinants (210,320)or whatever, that that click fell within the boundrys of whatever widgit the mouse was over.
 
  


Reply



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
Making the 'wheel' work on mice tuxuser19 Debian 1 10-15-2005 05:54 AM
Can I configure two mice to work at the same time? njschroe Linux - Hardware 4 02-01-2005 08:42 AM
xmodmap for multiple mice? external and laptop mice scrolling back/forward, etc. bleargh Linux - Software 3 12-31-2004 08:48 AM
/dev/input/mice doesn't work Bogdan29 Linux - Newbie 3 05-07-2003 11:19 PM
Argh! My mice dont work! curator Linux - Software 2 02-12-2001 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:20 AM.

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
Open Source Consulting | Domain Registration