|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.listeners.WidgetControllerAdapter
public abstract class WidgetControllerAdapter
If a Widget makes use of other Widgets to be built and these Widgets produce events, that are to be catched be the Widget only, then you should create an inner class and let it extend this class to catch them, since it already implements all known Widget-Listeners (with empty method stubs).
| Constructor Summary | |
|---|---|
WidgetControllerAdapter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetControllerAdapter()
| Method Detail |
|---|
public void onControllerButtonPressed(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
onControllerButtonPressed in interface WidgetControllerListenerwidget - the Widget for which this event was firedbutton - the pressed buttonwhen - the gameTime of the event
public void onControllerButtonReleased(Widget widget,
org.jagatoo.input.devices.components.ControllerButton button,
long when)
onControllerButtonReleased in interface WidgetControllerListenerwidget - the Widget for which this event was firedbutton - the released buttonwhen - the gameTime of the event
public void onControllerAxisChanged(Widget widget,
org.jagatoo.input.devices.components.ControllerAxis axis,
float axisDelta,
long when)
onControllerAxisChanged in interface WidgetControllerListenerwidget - the Widget for which this event was firedaxis - the changed axiswhen - the gameTime of the event
public void onInputStateChanged(Widget widget,
org.jagatoo.input.devices.components.DeviceComponent comp,
int delta,
int state,
long when,
boolean isTopMost,
boolean hasFocus)
onInputStateChanged in interface WidgetControllerListenerwidget - the Widget for which this event was firedwhen - the gameTime of the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||