public static class Joystick.JoystickListenerToCommandEvents extends Object implements Joystick.JoystickListener
Joystick.JoystickListener
.
This implementation sends some MicroUI Command events. It targets the common MicroUI Command generator identified
by the tag EventCommand.COMMON_MICROUI_GENERATOR_TAG
.
No event is sent on release states (only press and repeat).
This tag can be changed overriding the method getMicroUIGeneratorTag()
.
Constructor and Description |
---|
JoystickListenerToCommandEvents() |
Modifier and Type | Method and Description |
---|---|
protected String |
getMicroUIGeneratorTag()
Gets the MicroUI Command events generator tag.
|
void |
pressDown(Joystick widget)
The down button has been pressed.
|
void |
pressEnter(Joystick widget)
The enter button has been pressed.
|
void |
pressLeft(Joystick widget)
The left button has been pressed.
|
void |
pressRight(Joystick widget)
The right button has been pressed.
|
void |
pressUp(Joystick widget)
The up button has been pressed.
|
void |
releaseDown(Joystick widget)
The down button has been released.
|
void |
releaseEnter(Joystick widget)
The enter button has been released.
|
void |
releaseLeft(Joystick widget)
The left button has been released.
|
void |
releaseRight(Joystick widget)
The right button has been released.
|
void |
releaseUp(Joystick widget)
The up button has been released.
|
void |
repeatDown(Joystick widget)
The down button has been held down.
|
void |
repeatEnter(Joystick widget)
The enter button has been held down.
|
void |
repeatLeft(Joystick widget)
The left button has been held down.
|
void |
repeatRight(Joystick widget)
The right button has been held down.
|
void |
repeatUp(Joystick widget)
The up button has been held down.
|
protected String getMicroUIGeneratorTag()
microui/microui.xml
public void pressDown(Joystick widget)
Joystick.JoystickListener
pressDown
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed.public void pressEnter(Joystick widget)
Joystick.JoystickListener
pressEnter
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed.public void pressLeft(Joystick widget)
Joystick.JoystickListener
pressLeft
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed.public void pressRight(Joystick widget)
Joystick.JoystickListener
pressRight
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed.public void pressUp(Joystick widget)
Joystick.JoystickListener
pressUp
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed.public void releaseDown(Joystick widget)
Joystick.JoystickListener
releaseDown
in interface Joystick.JoystickListener
widget
- the joystick where the button has been released.public void releaseEnter(Joystick widget)
Joystick.JoystickListener
releaseEnter
in interface Joystick.JoystickListener
widget
- the joystick where the button has been released.public void releaseLeft(Joystick widget)
Joystick.JoystickListener
releaseLeft
in interface Joystick.JoystickListener
widget
- the joystick where the button has been released.public void releaseRight(Joystick widget)
Joystick.JoystickListener
releaseRight
in interface Joystick.JoystickListener
widget
- the joystick where the button has been released.public void releaseUp(Joystick widget)
Joystick.JoystickListener
releaseUp
in interface Joystick.JoystickListener
widget
- the joystick where the button has been released.public void repeatDown(Joystick widget)
Joystick.JoystickListener
repeatDown
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed again.public void repeatEnter(Joystick widget)
Joystick.JoystickListener
repeatEnter
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed again.public void repeatLeft(Joystick widget)
Joystick.JoystickListener
repeatLeft
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed again.public void repeatRight(Joystick widget)
Joystick.JoystickListener
repeatRight
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed again.public void repeatUp(Joystick widget)
Joystick.JoystickListener
repeatUp
in interface Joystick.JoystickListener
widget
- the joystick where the button has been pressed again.