Class KeyInputEvent
java.lang.Object
org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
- All Implemented Interfaces:
Event
Raw key event dispatched by the Minecraft instance.
If you want to translate this into something usable by PolyUI, have a look at
If you want to translate this into something usable by PolyUI, have a look at
KeybindManager.translateKey(EventManager, keyCode, character, down)-
Nested Class Summary
Nested classes/interfaces inherited from interface org.polyfrost.oneconfig.api.event.v1.events.Event
Event.Cancellable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcharintboolean
-
Field Details
-
key
public final int keyThe keycode that created this event. A value of 0 indicates this was not a coded event but a character event (seecharacter) -
character
public final char characterThe character that created this event.
A value of 0 indicates this was not a character event but a coded event (seekey) -
state
public final int state0 = up
1 = down
2 = repeat
-
-
Constructor Details
-
KeyInputEvent
public KeyInputEvent(int key, char character, int state)
-
-
Method Details
-
component1
public int component1() -
component2
public char component2() -
component3
public int component3() -
isPressed
public boolean isPressed()
-