类 ScreenEvent.KeyInput
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.KeyInput
- 封闭类:
ScreenEvent
Fired whenever a keyboard key is pressed or released. See the various subclasses to listen for key pressing or releasing.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
返回 theGLFW
(platform-agnostic) key code。int
返回 a bit field representing the active modifier keys。int
返回 the platform-specific scan code。从类继承的方法 net.minecraftforge.client.event.ScreenEvent
getScreen
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
keyCode
private final int keyCode -
scanCode
private final int scanCode -
modifiers
private final int modifiers
-
-
构造器详细资料
-
KeyInput
-
-
方法详细资料
-
getKeyCode
public int getKeyCode()返回 theGLFW
(platform-agnostic) key code。- 返回:
- the
GLFW
(platform-agnostic) key code - 另请参阅:
-
getScanCode
public int getScanCode()返回 the platform-specific scan code。The scan code is unique for every key, regardless of whether it has a key code. Scan codes are platform-specific but consistent over time, so keys will have different scan codes depending on the platform but they are safe to save to disk as custom key bindings.
- 返回:
- the platform-specific scan code
- 另请参阅:
-
getModifiers
public int getModifiers()返回 a bit field representing the active modifier keys。- 返回:
- a bit field representing the active modifier keys
- 另请参阅:
-