Interface IForgeKeyMapping
- All Known Implementing Classes:
- KeyMapping,- ToggleKeyMapping
public interface IForgeKeyMapping
Extension interface for 
KeyMapping.- 
Method SummaryModifier and TypeMethodDescriptiongetKey()default booleanhasKeyModifierConflict(KeyMapping other) Returns true when one of the bindings' key codes conflicts with the other's modifier.default booleanisActiveAndMatches(InputConstants.Key keyCode) Returns true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise.default booleanprivate KeyMappingself()voidsetKeyConflictContext(IKeyConflictContext keyConflictContext) voidsetKeyModifierAndCode(KeyModifier keyModifier, InputConstants.Key keyCode) default void
- 
Method Details- 
self
- 
getKey
- 
isActiveAndMatchesReturns 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
 
- 
setToDefaultdefault void setToDefault()
- 
setKeyConflictContext
- 
getKeyConflictContextIKeyConflictContext getKeyConflictContext()
- 
getDefaultKeyModifierKeyModifier getDefaultKeyModifier()
- 
getKeyModifierKeyModifier getKeyModifier()
- 
setKeyModifierAndCode
- 
isConflictContextAndModifierActivedefault boolean isConflictContextAndModifierActive()
- 
hasKeyModifierConflictReturns true when one of the bindings' key codes conflicts with the other's modifier.
 
-