Enum Class SyKeyModifier
- All Implemented Interfaces:
SyKeyModifierType, Serializable, Comparable<SyKeyModifier>, Constable
A modifier key.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe left alt key.The right alt key.The left control key.The right control key.The left shift key.The right shift key.The left super key.The right super key. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<SyKeyModifier> static SyKeyModifierReturns the enum constant of this class with the specified name.static SyKeyModifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface SyKeyModifierType
isAlt, isControl, isShift, isSuper
-
Enum Constant Details
-
SY_MODIFIER_SHIFT_LEFT
The left shift key. -
SY_MODIFIER_SHIFT_RIGHT
The right shift key. -
SY_MODIFIER_CONTROL_LEFT
The left control key. -
SY_MODIFIER_CONTROL_RIGHT
The right control key. -
SY_MODIFIER_ALT_LEFT
The left alt key. -
SY_MODIFIER_ALT_RIGHT
The right alt key. -
SY_MODIFIER_SUPER_LEFT
The left super key. -
SY_MODIFIER_SUPER_RIGHT
The right super key.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
ofKey
- Parameters:
keyCode- The input keycode- Returns:
- The key modifier associated with the keycode, if any
-