/[libvob]/libvob/org/nongnu/libvob/mouse/MouseMultiplexer.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/mouse/MouseMultiplexer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Wed Aug 6 09:30:09 2003 UTC revision 1.5 by mudyc, Wed Aug 6 09:51:30 2003 UTC
# Line 5  package org.nongnu.libvob.mouse; Line 5  package org.nongnu.libvob.mouse;
5  import org.nongnu.libvob.VobMouseEvent;  import org.nongnu.libvob.VobMouseEvent;
6  import org.nongnu.libvob.input.RelativeAxisListener;  import org.nongnu.libvob.input.RelativeAxisListener;
7    
   
8  /** A class to send mouse events to the listeners that want them.  /** A class to send mouse events to the listeners that want them.
9   */   */
10  public class MouseMultiplexer {  public class MouseMultiplexer {
# Line 20  public class MouseMultiplexer { Line 19  public class MouseMultiplexer {
19       */       */
20      public final static int MAXBUTTON = 4;      public final static int MAXBUTTON = 4;
21    
22      /** The modifier mask for shift.      /** A constant that is all modifier masks ored together.
      */  
     public final static int SHIFT_MASK = 1;  
     /** The modifier mask for control.  
      */  
     public final static int CONTROL_MASK = 2;  
     /** The modifier mask for alt.  
23       */       */
24      public final static int ALT_MASK = 4;      private final static int ALLMASK;
25        static {
26            VobMouseEvent e = null;
27            ALLMASK = e.SHIFT_MASK + e.CONTROL_MASK + e.ALT_MASK;
28        }
29    
30      /** The maximum modifier mask plus one.      /** The maximum modifier mask plus one.
31       */       */
32      public final static int MAXMASK = 8;      public final static int MAXMASK = ALLMASK + 1;
33    
     /** A constant that is all modifier masks ored together.  
      */  
     private final static int ALLMASK = 7;  
34    
35      //-- Internal data structures      //-- Internal data structures
36    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26