Interface IKeyMappingExtension
- All Known Implementing Classes:
KeyMapping
,ToggleKeyMapping
public interface IKeyMappingExtension
Extension interface for
KeyMapping
.-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
default boolean
hasKeyModifierConflict
(KeyMapping other) Returns true when one of the bindings' key codes conflicts with the other's modifier.default boolean
isActiveAndMatches
(InputConstants.Key keyCode) Returns true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise.default boolean
private KeyMapping
self()
void
setKeyConflictContext
(IKeyConflictContext keyConflictContext) void
setKeyModifierAndCode
(KeyModifier keyModifier, InputConstants.Key keyCode) default void
-
Method Details
-
self
-
getKey
InputConstants.Key getKey() -
isActiveAndMatches
Returns true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise.- Returns:
- true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise
-
setToDefault
default void setToDefault() -
setKeyConflictContext
-
getKeyConflictContext
IKeyConflictContext getKeyConflictContext() -
getDefaultKeyModifier
KeyModifier getDefaultKeyModifier() -
getKeyModifier
KeyModifier getKeyModifier() -
setKeyModifierAndCode
-
isConflictContextAndModifierActive
default boolean isConflictContextAndModifierActive() -
hasKeyModifierConflict
Returns true when one of the bindings' key codes conflicts with the other's modifier.
-