org.jagatoo.input.events
Class KeyboardEventPool
java.lang.Object
org.jagatoo.input.events.KeyboardEventPool
public final class KeyboardEventPool
- extends java.lang.Object
A pool for KeyboardEvent instances.
|
Method Summary |
static KeyPressedEvent |
allocPressed()
|
static KeyPressedEvent |
allocPressed(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
|
static KeyReleasedEvent |
allocReleased()
|
static KeyReleasedEvent |
allocReleased(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
|
static KeyTypedEvent |
allocTyped()
|
static KeyTypedEvent |
allocTyped(Keyboard keyboard,
char keyChar,
int modifierMask,
long when,
long lastWhen)
|
static void |
cleanup(InputSourceWindow sourceWindow)
|
static void |
freePressed(KeyPressedEvent e)
|
static void |
freeReleased(KeyReleasedEvent e)
|
static void |
freeTyped(KeyTypedEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allocPressed
public static KeyPressedEvent allocPressed()
allocPressed
public static KeyPressedEvent allocPressed(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
freePressed
public static void freePressed(KeyPressedEvent e)
allocReleased
public static KeyReleasedEvent allocReleased()
allocReleased
public static KeyReleasedEvent allocReleased(Keyboard keyboard,
Key key,
int modifierMask,
long when,
long lastWhen)
freeReleased
public static void freeReleased(KeyReleasedEvent e)
allocTyped
public static KeyTypedEvent allocTyped()
allocTyped
public static KeyTypedEvent allocTyped(Keyboard keyboard,
char keyChar,
int modifierMask,
long when,
long lastWhen)
freeTyped
public static void freeTyped(KeyTypedEvent e)
cleanup
public static void cleanup(InputSourceWindow sourceWindow)