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)static final intstatic final intstatic final intfinal int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcharintboolean
-
Field Details
-
RELEASED
public static final int RELEASED- See Also:
-
PRESSED
public static final int PRESSED- See Also:
-
REPEAT
public static final int REPEAT- See Also:
-
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 state
-
-
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()
-