public class TouchEventPool
extends java.lang.Object
Constructor and Description |
---|
TouchEventPool(int maxEvents) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
TouchEvent |
getNextFreeEvent()
Fetches a touch event from the reuse pool
|
void |
initialize() |
void |
storeEvent(TouchEvent event)
Stores the TouchEvent back in the pool for later reuse.
|
public void initialize()
public void destroy()
public TouchEvent getNextFreeEvent()
public void storeEvent(TouchEvent event)
event
- TouchEvent to store for later use if consumed.