1 26 27 package net.sourceforge.groboutils.uicapture.v1.event; 28 29 import java.awt.Robot ; 30 import java.awt.event.InputEvent ; 31 import java.awt.event.MouseEvent ; 32 33 34 40 public abstract class MouseButtonCaptureEvent extends MouseCaptureEvent 41 { 42 45 private int modifiers = -1; 46 47 public MouseButtonCaptureEvent( int type, MouseEvent event ) 48 { 49 super( type, event ); 50 51 this.modifiers = event.getModifiers() & BUTTON_MASK; 52 } 53 54 55 public MouseButtonCaptureEvent( int type, int modifiers ) 56 { 57 super( type ); 58 59 this.modifiers = modifiers & BUTTON_MASK; 60 } 61 62 63 public int getModifiers() 64 { 65 return this.modifiers; 66 } 67 } 68 69 | Popular Tags |