public static enum Event.Type extends Enum<Event.Type>
Enum Constant and Description |
---|
CLOSED
Fired when the user clicked on the window's close button.
|
GAINED_FOCUS
Fired when the window gained focus.
|
JOYSTICK_BUTTON_PRESSED
Fired when a joystick or gamepad button was pressed while the window
had focus.
|
JOYSTICK_BUTTON_RELEASED
Fired when a joystick or gamepad button was released while the window
had focus.
|
JOYSTICK_CONNECETED
Fired when a joystick or gamepad was connected.
|
JOYSTICK_DISCONNECTED
Fired when a joystick or gamepad was disconnected.
|
JOYSTICK_MOVED
Fired when a joystick or gamepad axis was moved while the window
had focus.
|
KEY_PRESSED
Fired when a keyboard key was pressed while the window had focus.
|
KEY_RELEASED
Fired when a keyboard key was released while the window had focus.
|
LOST_FOCUS
Fired when the window lost focus.
|
MOUSE_BUTTON_PRESSED
Fired when a mouse button was pressed while the window had focus.
|
MOUSE_BUTTON_RELEASED
Fired when a mouse button was released while the window had focus.
|
MOUSE_ENTERED
Fired when the mouse cursor entered the window's boundaries.
|
MOUSE_LEFT
Fired when the mouse cursor left the window's boundaries.
|
MOUSE_MOVED
Fired when the mouse cursor was moved within the window's boundaries.
|
MOUSE_WHEEL_MOVED
Fired when the mouse wheel was moved while the window had focus.
|
RESIZED
Fired when the window was resized.
|
TEXT_ENTERED
Fired when a text character was entered using the keyboard while the
window had focus.
|
Modifier and Type | Method and Description |
---|---|
static Event.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Event.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event.Type CLOSED
public static final Event.Type RESIZED
public static final Event.Type LOST_FOCUS
public static final Event.Type GAINED_FOCUS
public static final Event.Type TEXT_ENTERED
TextEvent
using the
Event.asTextEvent()
method.public static final Event.Type KEY_PRESSED
KeyEvent
using the
Event.asKeyEvent()
method.public static final Event.Type KEY_RELEASED
KeyEvent
using the
Event.asKeyEvent()
method.public static final Event.Type MOUSE_WHEEL_MOVED
MouseWheelEvent
using the
Event.asMouseWheelEvent()
method.public static final Event.Type MOUSE_BUTTON_PRESSED
MouseButtonEvent
using the
Event.asMouseButtonEvent()
method.public static final Event.Type MOUSE_BUTTON_RELEASED
MouseButtonEvent
using the
Event.asMouseButtonEvent()
method.public static final Event.Type MOUSE_MOVED
MouseEvent
using the
Event.asMouseEvent()
method.public static final Event.Type MOUSE_ENTERED
MouseEvent
using the
Event.asMouseEvent()
method.public static final Event.Type MOUSE_LEFT
MouseEvent
using the
Event.asMouseEvent()
method.public static final Event.Type JOYSTICK_BUTTON_PRESSED
JoystickButtonEvent
using the
Event.asJoystickButtonEvent()
method.public static final Event.Type JOYSTICK_BUTTON_RELEASED
JoystickButtonEvent
using the
Event.asJoystickButtonEvent()
method.public static final Event.Type JOYSTICK_MOVED
JoystickMoveEvent
using the
Event.asJoystickMoveEvent()
method.public static final Event.Type JOYSTICK_CONNECETED
JoystickEvent
using the
Event.asJoystickEvent()
method.public static final Event.Type JOYSTICK_DISCONNECTED
JoystickEvent
using the
Event.asJoystickEvent()
method.public static Event.Type[] values()
for (Event.Type c : Event.Type.values()) System.out.println(c);
public static Event.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null