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
To translate this into something usable by PolyUI have a look at
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
FieldsModifier and TypeFieldDescriptionfinal charThe character that created this event
A value of 0 means this was a coded event and not a character event (seekey)final intThe keycode that created this event
A value of 0 means this was a character event and not a coded event (seecharacter)final int0 = up
1 = down
2 = repeat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcharintboolean
-
Field Details
-
key
public final int keyThe keycode that created this event
A value of 0 means this was a character event and not a coded event (seecharacter) -
character
public final char characterThe character that created this event
A value of 0 means this was a coded event and not a character 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()
-