org.xith3d.ui.hud.listeners
Interface WidgetControllerListener

All Known Subinterfaces:
WidgetInputListener
All Known Implementing Classes:
WidgetControllerAdapter, WidgetEventsReceiverAdapter, WidgetInputAdapter

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

onControllerButtonPressed

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.

Parameters:
widget - the Widget for which this event was fired
button - the pressed button
when - the gameTime of the event

onControllerButtonReleased

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.

Parameters:
widget - the Widget for which this event was fired
button - the released button
when - the gameTime of the event

onControllerAxisChanged

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.

Parameters:
widget - the Widget for which this event was fired
axis - the changed axis
axisDelta -
when - the gameTime of the event

onInputStateChanged

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.

Parameters:
widget - the Widget for which this event was fired
comp -
delta -
state -
when - the gameTime of the event
isTopMost -
hasFocus -