public final class TextEvent extends Event
|Modifier and Type||Field and Description|
The Java representation of the character that was entered.
The UTF-32 code of the character that was entered.
|Constructor and Description|
Constructs a new text event.
|Modifier and Type||Method and Description|
Attempts to cast this event to a
asJoystickButtonEvent, asJoystickEvent, asJoystickMoveEvent, asKeyEvent, asMouseButtonEvent, asMouseEvent, asMouseWheelEvent, asSizeEvent
public final int unicode
public final char character
public TextEvent(int type, int unicode)
type- the type of the event. This must be a valid ordinal in the
unicode- the UTF-32 code of the character that was entered.
public TextEvent asTextEvent()
TextEventif its type is