de.matthiasmann.twl.input.lwjgl
Class LWJGLInput

java.lang.Object
  extended by de.matthiasmann.twl.input.lwjgl.LWJGLInput
All Implemented Interfaces:
Input

public class LWJGLInput
extends java.lang.Object
implements Input

Input handling based on LWJGL's Mouse & Keyboard classes.


Constructor Summary
LWJGLInput()
           
 
Method Summary
 boolean pollInput(GUI gui)
          Poll input events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LWJGLInput

public LWJGLInput()
Method Detail

pollInput

public boolean pollInput(GUI gui)
Description copied from interface: Input
Poll input events.

Specified by:
pollInput in interface Input
Parameters:
gui - the GUI object which should receive the input
Returns:
true if input events have been processed, false if the input system is currently inactive.
See Also:
GUI.handleKey(int, char, boolean), GUI.handleMouse(int, int, int, boolean), GUI.handleMouseWheel(int)