org.jrabbit.base.input
Interface KeyEventListener


public interface KeyEventListener

A KeyEventListener is used if the user wants to directly access the data from LWJGL Keyboard events. KeyboardListener intentionally simplifies the API to make using particular functionality easier.

Author:
Chris Molini

Method Summary
 void processKeyEvent(int key, boolean state, char keyChar, long time)
          Processes the described LWJGL Keyboard event.
 

Method Detail

processKeyEvent

void processKeyEvent(int key,
                     boolean state,
                     char keyChar,
                     long time)
Processes the described LWJGL Keyboard event.

Parameters:
key - The ID of the Key that caused this event.
state - True if the key was pressed, false otherwise.
keyChar - The character described by the key.
time - The time at which the Key event occurred (in nanoseconds).