接口 IForgeKeyMapping
- 所有已知实现类:
KeyMapping
,ToggleKeyMapping
public interface IForgeKeyMapping
Extension interface for
KeyMapping
.-
方法概要
修饰符和类型方法说明getKey()
default boolean
hasKeyModifierConflict
(KeyMapping other) Returns true when one of the bindings' key codes conflicts with the other's modifier.default boolean
isActiveAndMatches
(InputConstants.Key keyCode) 返回 true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise。default boolean
private KeyMapping
self()
void
setKeyConflictContext
(IKeyConflictContext keyConflictContext) void
setKeyModifierAndCode
(KeyModifier keyModifier, InputConstants.Key keyCode) default void
-
方法详细资料
-
self
-
getKey
-
isActiveAndMatches
返回 true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise。- 返回:
- true if the key conflict context and modifier are active and the keyCode matches this binding, false otherwise
-
setToDefault
default void setToDefault() -
setKeyConflictContext
-
getKeyConflictContext
IKeyConflictContext getKeyConflictContext() -
getDefaultKeyModifier
KeyModifier getDefaultKeyModifier() -
getKeyModifier
KeyModifier getKeyModifier() -
setKeyModifierAndCode
-
isConflictContextAndModifierActive
default boolean isConflictContextAndModifierActive() -
hasKeyModifierConflict
Returns true when one of the bindings' key codes conflicts with the other's modifier.
-