Howto exactly identify the Middle Mouse Button was used? [message #452158] |
Mon, 14 March 2005 12:15  |
Eclipse User |
|
|
|
Hi,
I am wondering if its possible to exactly determine wether the
Middle-Mouse-Button was pressed,
or if the "button" field in MouseEvent depends on the Mouse I am using.
An example:
Using a 3 Button Mouse, the middle mouse button will have event.button = 2
Using a 2 Button Mouse, the right mouse button (normaly used to open the
context
menu) will also have event.button = 2, or not?
Regards,
Ben
|
|
|
Re: Howto exactly identify the Middle Mouse Button was used? [message #452216 is a reply to message #452158] |
Tue, 15 March 2005 09:24  |
Eclipse User |
|
|
|
The right mouse button is always button=3, even on a 2-button mouse.
Grant
"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:d14gqh$tov$1@www.eclipse.org...
> Hi,
>
> I am wondering if its possible to exactly determine wether the
> Middle-Mouse-Button was pressed,
> or if the "button" field in MouseEvent depends on the Mouse I am using.
>
> An example:
> Using a 3 Button Mouse, the middle mouse button will have event.button = 2
> Using a 2 Button Mouse, the right mouse button (normaly used to open the
> context
> menu) will also have event.button = 2, or not?
>
> Regards,
> Ben
|
|
|
Powered by
FUDForum. Page generated in 0.08110 seconds