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.xmlpublic void pressDown(Joystick widget)
Joystick.JoystickListenerpressDown in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed.public void pressEnter(Joystick widget)
Joystick.JoystickListenerpressEnter in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed.public void pressLeft(Joystick widget)
Joystick.JoystickListenerpressLeft in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed.public void pressRight(Joystick widget)
Joystick.JoystickListenerpressRight in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed.public void pressUp(Joystick widget)
Joystick.JoystickListenerpressUp in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed.public void releaseDown(Joystick widget)
Joystick.JoystickListenerreleaseDown in interface Joystick.JoystickListenerwidget - the joystick where the button has been released.public void releaseEnter(Joystick widget)
Joystick.JoystickListenerreleaseEnter in interface Joystick.JoystickListenerwidget - the joystick where the button has been released.public void releaseLeft(Joystick widget)
Joystick.JoystickListenerreleaseLeft in interface Joystick.JoystickListenerwidget - the joystick where the button has been released.public void releaseRight(Joystick widget)
Joystick.JoystickListenerreleaseRight in interface Joystick.JoystickListenerwidget - the joystick where the button has been released.public void releaseUp(Joystick widget)
Joystick.JoystickListenerreleaseUp in interface Joystick.JoystickListenerwidget - the joystick where the button has been released.public void repeatDown(Joystick widget)
Joystick.JoystickListenerrepeatDown in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed again.public void repeatEnter(Joystick widget)
Joystick.JoystickListenerrepeatEnter in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed again.public void repeatLeft(Joystick widget)
Joystick.JoystickListenerrepeatLeft in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed again.public void repeatRight(Joystick widget)
Joystick.JoystickListenerrepeatRight in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed again.public void repeatUp(Joystick widget)
Joystick.JoystickListenerrepeatUp in interface Joystick.JoystickListenerwidget - the joystick where the button has been pressed again.