mouseEvents - which mouseKey?

Ingo Hohmann ingo at 2b1.de
Tue Jun 3 12:54:03 UTC 2003


Hi Squeakers,

I am using

	self
		on: #mouseUp
		send: #mouseClick:
		to: self.	

to catch mouseEvents.

When exploring the Event I get sent, I see

	whichButton: 4
and
	whichButton: 2

for what is my left and right mouseButton respectively.

Are these numbers tied to my mouseButtons as layoutet on my mouse, or to 
the squeaky coloured button names? Or is there even a better way to find 
out which button has been pressed?


Tank you,

Ingo





More information about the Squeak-dev mailing list