D
Daniel Tahin
Hi all!
How can i determine, which mouse button was pressed, using
java.awt.Event class (JDK1.0 API)?
I write following for the left button:
if( e.modifiers!=Event.ALT_MASK && e.modifiers!=Event.META_MASK ) {
doSomething();
}
//all these things are inside of handleEvent(Event e) {}, and i extend
java.awt.Canvas.
This seems to be working for the left button, BUT there is only 1
problem. If i use the scroller, doSomething() will be invoked as well
(the mouse has 2 buttons, and a scroller).
Do you know any solution for this problem?
Thanx in advance,
Daniel
How can i determine, which mouse button was pressed, using
java.awt.Event class (JDK1.0 API)?
I write following for the left button:
if( e.modifiers!=Event.ALT_MASK && e.modifiers!=Event.META_MASK ) {
doSomething();
}
//all these things are inside of handleEvent(Event e) {}, and i extend
java.awt.Canvas.
This seems to be working for the left button, BUT there is only 1
problem. If i use the scroller, doSomething() will be invoked as well
(the mouse has 2 buttons, and a scroller).
Do you know any solution for this problem?
Thanx in advance,
Daniel