Interface IForgeKeyMapping
- All Known Implementing Classes:
KeyMapping,ToggleKeyMapping
public interface IForgeKeyMapping
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()default booleanhasKeyCodeModifierConflict(KeyMapping other)Returns true when one of the bindings' key codes conflicts with the other's modifier.default booleanisActiveAndMatches(InputConstants.Key keyCode)Checks that the key conflict context and modifier are active, and that the keyCode matches this binding.default booleanprivate KeyMappingself()voidsetKeyConflictContext(IKeyConflictContext keyConflictContext)voidsetKeyModifierAndCode(KeyModifier keyModifier, InputConstants.Key keyCode)default void
-
Method Details
-
self
-
getKey
-
isActiveAndMatches
Checks that the key conflict context and modifier are active, and that the keyCode matches this binding. -
setToDefault
default void setToDefault() -
setKeyConflictContext
-
getKeyConflictContext
IKeyConflictContext getKeyConflictContext() -
getKeyModifierDefault
KeyModifier getKeyModifierDefault() -
getKeyModifier
KeyModifier getKeyModifier() -
setKeyModifierAndCode
-
isConflictContextAndModifierActive
default boolean isConflictContextAndModifierActive() -
hasKeyCodeModifierConflict
Returns true when one of the bindings' key codes conflicts with the other's modifier.
-