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 { |
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 |
|
|