org.jagatoo.input.events
Class ControllerButtonPressedEvent

java.lang.Object
  extended by org.jagatoo.input.events.InputEvent
      extended by org.jagatoo.input.events.ControllerEvent
          extended by org.jagatoo.input.events.ControllerButtonEvent
              extended by org.jagatoo.input.events.ControllerButtonPressedEvent

public class ControllerButtonPressedEvent
extends ControllerButtonEvent

Stores the details associated with a controller event.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.ControllerEvent
ControllerEvent.SubType
 
Nested classes/interfaces inherited from class org.jagatoo.input.events.InputEvent
InputEvent.Type
 
Field Summary
 
Fields inherited from class org.jagatoo.input.events.ControllerButtonEvent
button
 
Constructor Summary
ControllerButtonPressedEvent()
          Creates a ControllerButtonPressedEvent with default values.
ControllerButtonPressedEvent(Controller controller, ControllerButton button, long when, long lastWhen)
          Create a new event.
 
Method Summary
 void set(ControllerButtonPressedEvent e)
          Sets the fields of this ControllerButtonPressedEvent to match the given event.
 void set(Controller controller, ControllerButton button, long when, long lastWhen)
           
 java.lang.String toString()
          
 
Methods inherited from class org.jagatoo.input.events.ControllerButtonEvent
getButton, getButtonBooleanState, getButtonState, set, set
 
Methods inherited from class org.jagatoo.input.events.ControllerEvent
getController, getSubType, set, set
 
Methods inherited from class org.jagatoo.input.events.InputEvent
getComponent, getLastWhen, getType, getWhen, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControllerButtonPressedEvent

public ControllerButtonPressedEvent()
Creates a ControllerButtonPressedEvent with default values.


ControllerButtonPressedEvent

public ControllerButtonPressedEvent(Controller controller,
                                    ControllerButton button,
                                    long when,
                                    long lastWhen)
Create a new event.

Parameters:
controller -
button -
when -
lastWhen -
Method Detail

toString

public java.lang.String toString()

Overrides:
toString in class ControllerButtonEvent
Returns:
in formation about this InputEvent as a String.

set

public void set(Controller controller,
                ControllerButton button,
                long when,
                long lastWhen)
Parameters:
controller -
button -
when -
lastWhen -

set

public void set(ControllerButtonPressedEvent e)
Sets the fields of this ControllerButtonPressedEvent to match the given event.