Interface IForgeKeybinding
-
- All Known Implementing Classes:
KeyBinding
,ToggleableKeyBinding
public interface IForgeKeybinding
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputMappings.Input
getKey()
default KeyBinding
getKeyBinding()
IKeyConflictContext
getKeyConflictContext()
KeyModifier
getKeyModifier()
KeyModifier
getKeyModifierDefault()
default boolean
hasKeyCodeModifierConflict(KeyBinding other)
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
isConflictContextAndModifierActive()
void
setKeyConflictContext(IKeyConflictContext keyConflictContext)
void
setKeyModifierAndCode(KeyModifier keyModifier, InputMappings.Input keyCode)
default void
setToDefault()
-
-
-
Method Detail
-
getKeyBinding
default KeyBinding getKeyBinding()
-
getKey
@Nonnull InputMappings.Input getKey()
-
isActiveAndMatches
default boolean isActiveAndMatches(InputMappings.Input keyCode)
Checks that the key conflict context and modifier are active, and that the keyCode matches this binding.
-
setToDefault
default void setToDefault()
-
setKeyConflictContext
void setKeyConflictContext(IKeyConflictContext keyConflictContext)
-
getKeyConflictContext
IKeyConflictContext getKeyConflictContext()
-
getKeyModifierDefault
KeyModifier getKeyModifierDefault()
-
getKeyModifier
KeyModifier getKeyModifier()
-
setKeyModifierAndCode
void setKeyModifierAndCode(KeyModifier keyModifier, InputMappings.Input keyCode)
-
isConflictContextAndModifierActive
default boolean isConflictContextAndModifierActive()
-
hasKeyCodeModifierConflict
default boolean hasKeyCodeModifierConflict(KeyBinding other)
Returns true when one of the bindings' key codes conflicts with the other's modifier.
-
-