org.jagatoo.input.events
Class ControllerEventPool

java.lang.Object
  extended by org.jagatoo.input.events.ControllerEventPool

public final class ControllerEventPool
extends java.lang.Object

A pool for ControllerEvent instances.


Method Summary
static ControllerAxisChangedEvent allocAxis()
           
static ControllerAxisChangedEvent allocAxis(Controller controller, ControllerAxis axis, float axisDelta, long when, long lastWhen)
           
static ControllerButtonPressedEvent allocPressed()
           
static ControllerButtonPressedEvent allocPressed(Controller controller, ControllerButton button, long when, long lastWhen)
           
static ControllerButtonReleasedEvent allocReleased()
           
static ControllerButtonReleasedEvent allocReleased(Controller controller, ControllerButton button, long when, long lastWhen)
           
static void cleanup(InputSourceWindow sourceWindow)
           
static void freeAxis(ControllerAxisChangedEvent e)
           
static void freePressed(ControllerButtonPressedEvent e)
           
static void freeReleased(ControllerButtonReleasedEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allocAxis

public static ControllerAxisChangedEvent allocAxis()

allocAxis

public static ControllerAxisChangedEvent allocAxis(Controller controller,
                                                   ControllerAxis axis,
                                                   float axisDelta,
                                                   long when,
                                                   long lastWhen)

freeAxis

public static void freeAxis(ControllerAxisChangedEvent e)

allocPressed

public static ControllerButtonPressedEvent allocPressed()

allocPressed

public static ControllerButtonPressedEvent allocPressed(Controller controller,
                                                        ControllerButton button,
                                                        long when,
                                                        long lastWhen)

freePressed

public static void freePressed(ControllerButtonPressedEvent e)

allocReleased

public static ControllerButtonReleasedEvent allocReleased()

allocReleased

public static ControllerButtonReleasedEvent allocReleased(Controller controller,
                                                          ControllerButton button,
                                                          long when,
                                                          long lastWhen)

freeReleased

public static void freeReleased(ControllerButtonReleasedEvent e)

cleanup

public static void cleanup(InputSourceWindow sourceWindow)