Constructor and Description |
---|
UIEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
onKeyPressed(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
protected void |
onKeyReleased(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
protected void |
onKeyTyped(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
protected void |
onMouseClicked(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseDragged(MouseEvent mouseEvent,
float mx,
float my,
float dx,
float dy)
Subclasses override to receive mouse events
|
protected void |
onMouseMoved(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseOut(MouseEvent mouseEvent)
Subclasses override to receive events when mouse moves out of this object
|
protected void |
onMouseOver(MouseEvent mouseEvent)
Subclasses override to receive events when mouse moves over this object
|
protected void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseReleased(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseWheel(MouseEvent mouseEvent,
float mx,
float my,
float delta)
Subclasses override to receive mouse events
|
protected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseReleased(MouseEvent mouseEvent, float mx, float my)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseClicked(MouseEvent mouseEvent, float mx, float my)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseDragged(MouseEvent mouseEvent, float mx, float my, float dx, float dy)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- movement in xdy
- movement in yprotected void onMouseMoved(MouseEvent mouseEvent, float mx, float my)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseOver(MouseEvent mouseEvent)
mouseEvent
- Mouse Eventprotected void onMouseOut(MouseEvent mouseEvent)
mouseEvent
- Mouse Eventprotected void onMouseWheel(MouseEvent mouseEvent, float mx, float my, float delta)
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedelta
- Amount of wheel movementprotected void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueprotected void onKeyReleased(KeyEvent keyEvent, char keyChar, int keyCode)
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueprotected void onKeyTyped(KeyEvent keyEvent, char keyChar, int keyCode)
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueLX library by Mark C. Slee. © 2012-2020