|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WidgetControllerListener
A WidgetControllerListener is notified of Widget-Controller interaction events.
| Method Summary | |
|---|---|
void |
onControllerAxisChanged(Widget widget,
org.jagatoo.input.devices.components.ControllerAxis axis,
float axisDelta,
long when)
This event is fired when a ControllerAxis has changed and this Widget is the currently focussed one. |
void |
onControllerButtonPressed(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
This event is fired when a ControllerButton has been pressed and this Widget is the currently focussed one. |
void |
onControllerButtonReleased(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
This event is fired when a ControllerButton has been released and this Widget is the currently focussed one. |
void |
onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
This event is fired when the state of any DeviceComponent has changed. |
| Method Detail |
|---|
void onControllerButtonPressed(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
widget - the Widget for which this event was firedbutton - the pressed buttonwhen - the gameTime of the event
void onControllerButtonReleased(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
widget - the Widget for which this event was firedbutton - the released buttonwhen - the gameTime of the event
void onControllerAxisChanged(Widget widget,
org.jagatoo.input.devices.components.ControllerAxis axis,
float axisDelta,
long when)
widget - the Widget for which this event was firedaxis - the changed axisaxisDelta - when - the gameTime of the event
void onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
widget - the Widget for which this event was firedcomp - delta - state - when - the gameTime of the eventisTopMost - hasFocus -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||