1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.mle
.constants
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Exported
;
15 * Modifier keys for when key and mouse events occur.
20 public interface UIKeyModifier
22 /** Alt key modifier. */
27 /** Shift key modifier. */
32 /** Control (Ctrl) key modifier. */
37 /** Left Command Button. (SquirrelJME). */
39 int MODIFIER_LEFT_COMMAND
=
42 /** Right Command button. (SquirrelJME). */
44 int MODIFIER_RIGHT_COMMAND
=
47 /** Command key modifier. */
49 int MODIFIER_COMMAND
=
52 /** The Function key. */
54 int MODIFIER_FUNCTION
=
57 /** Left and right commands, used for middle command. */
59 int MODIFIER_LEFT_RIGHT_COMMANDS
=
60 UIKeyModifier
.MODIFIER_LEFT_COMMAND
|
61 UIKeyModifier
.MODIFIER_RIGHT_COMMAND
;
63 /** Mask specifically for the limits of J2ME. */
66 UIKeyModifier
.MODIFIER_ALT
|
67 UIKeyModifier
.MODIFIER_FUNCTION
| UIKeyModifier
.MODIFIER_COMMAND
|
68 UIKeyModifier
.MODIFIER_CTRL
| UIKeyModifier
.MODIFIER_SHIFT
;
70 /** Mask for all the modifier keys. */
73 UIKeyModifier
.J2ME_MASK
|
74 UIKeyModifier
.MODIFIER_LEFT_RIGHT_COMMANDS
;