Interface IForgeKeybinding
- All Known Implementing Classes:
KeyBinding
,ToggleableKeyBinding
public interface IForgeKeybinding
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
default KeyBinding
default boolean
Returns true when one of the bindings' key codes conflicts with the other's modifier.default boolean
isActiveAndMatches
(InputMappings.Input keyCode) Checks that the key conflict context and modifier are active, and that the keyCode matches this binding.default boolean
void
setKeyConflictContext
(IKeyConflictContext keyConflictContext) void
setKeyModifierAndCode
(KeyModifier keyModifier, InputMappings.Input keyCode) default void
-
Method Details
-
getKeyBinding
-
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.
-