Interface IForgeKeyMapping

All Known Implementing Classes:
KeyMapping, ToggleKeyMapping

public interface IForgeKeyMapping
  • Method Details

    • self

      private KeyMapping self()
    • getKey

      @Nonnull InputConstants.Key getKey()
    • isActiveAndMatches

      default boolean isActiveAndMatches(InputConstants.Key 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, InputConstants.Key keyCode)
    • isConflictContextAndModifierActive

      default boolean isConflictContextAndModifierActive()
    • hasKeyCodeModifierConflict

      default boolean hasKeyCodeModifierConflict(KeyMapping other)
      Returns true when one of the bindings' key codes conflicts with the other's modifier.