227 |
else if ((modifiers & BUTTON3_MASK) != 0) |
else if ((modifiers & BUTTON3_MASK) != 0) |
228 |
this.button = BUTTON3; |
this.button = BUTTON3; |
229 |
} |
} |
230 |
|
// clear the mouse button modifier masks if this is a button |
231 |
|
// release event. |
232 |
|
if (id == MOUSE_RELEASED) |
233 |
|
this.modifiersEx &= ~(BUTTON1_DOWN_MASK |
234 |
|
| BUTTON2_DOWN_MASK |
235 |
|
| BUTTON3_DOWN_MASK); |
236 |
} |
} |
237 |
|
|
238 |
/** |
/** |
398 |
s.append("unknown type,("); |
s.append("unknown type,("); |
399 |
} |
} |
400 |
s.append(x).append(',').append(y).append("),button=").append(button); |
s.append(x).append(',').append(y).append("),button=").append(button); |
401 |
if ((modifiers & EventModifier.NEW_MASK) != 0) |
// FIXME: need a mauve test for this method |
402 |
{ |
if (modifiersEx != 0) |
403 |
int mod = modifiers; |
s.append(",extModifiers=").append(getModifiersExText(modifiersEx)); |
|
if ((mod & (ALT_DOWN_MASK | BUTTON2_DOWN_MASK)) != 0) |
|
|
mod |= ALT_DOWN_MASK | BUTTON2_DOWN_MASK; |
|
|
if ((mod & (META_DOWN_MASK | BUTTON3_DOWN_MASK)) != 0) |
|
|
mod |= META_DOWN_MASK | BUTTON3_DOWN_MASK; |
|
|
s.append(",modifiers=").append(getModifiersExText(mod)); |
|
|
} |
|
|
if (modifiers != 0) |
|
|
s.append(",extModifiers=").append(getModifiersExText(modifiers)); |
|
404 |
return s.append(",clickCount=").append(clickCount).toString(); |
return s.append(",clickCount=").append(clickCount).toString(); |
405 |
} |
} |
406 |
|
|
424 |
button = BUTTON2; |
button = BUTTON2; |
425 |
else if ((modifiers & BUTTON3_MASK) != 0) |
else if ((modifiers & BUTTON3_MASK) != 0) |
426 |
button = BUTTON3; |
button = BUTTON3; |
427 |
modifiers = EventModifier.extend(modifiers); |
modifiersEx = EventModifier.extend(modifiers) & EventModifier.NEW_MASK; |
428 |
} |
} |
429 |
} |
} |
430 |
} // class MouseEvent |
} // class MouseEvent |