org.jagatoo.input.events
Class EventQueue

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

public class EventQueue
extends java.lang.Object

This is a simple synchronized event queue for JAGaTOO input events.


Field Summary
static java.lang.Object LOCK
           
 
Constructor Summary
EventQueue()
           
 
Method Summary
 void cleanup(InputSourceWindow sourceWindow)
           
 void dequeueAndFire(InputSystem inputSystem, InputEvent.Type filteredType)
           
 void enqueue(InputEvent event)
           
 InputEvent getEvent(int index)
           
 int getNumEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCK

public static final java.lang.Object LOCK
Constructor Detail

EventQueue

public EventQueue()
Method Detail

getNumEvents

public final int getNumEvents()

getEvent

public final InputEvent getEvent(int index)

enqueue

public final void enqueue(InputEvent event)

dequeueAndFire

public final void dequeueAndFire(InputSystem inputSystem,
                                 InputEvent.Type filteredType)
Parameters:
inputSystem -
filteredType -

cleanup

public void cleanup(InputSourceWindow sourceWindow)