org.jagatoo.input.impl.lwjgl
Class LWJGLMessageProcessor

java.lang.Object
  extended by org.jagatoo.input.impl.lwjgl.LWJGLMessageProcessor

public class LWJGLMessageProcessor
extends java.lang.Object

If you want special control over LWJGL's processMessages() call, which is quite expensive on Linux, you can use this class'es static methods.


Constructor Summary
LWJGLMessageProcessor()
           
 
Method Summary
static void allowOneUpdate()
          This method increases the count of allowed calls to LWJGL's processMessages() method.
static void allowUpdateAlways()
          Resets the number of allowed calls to LWJGL's processMessages() method to unlimited.
static boolean isMessageProcessingEnabled()
           
static void setMessageProcessingEnabled(boolean enabled)
          This enables/disables the call to processMessages() (from within the InputSystem) generally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LWJGLMessageProcessor

public LWJGLMessageProcessor()
Method Detail

setMessageProcessingEnabled

public static final void setMessageProcessingEnabled(boolean enabled)
This enables/disables the call to processMessages() (from within the InputSystem) generally.
No updates are performed, if allowOneUpdate() was called and allowUpdateAlways() wasn't after it.

Parameters:
enabled -

isMessageProcessingEnabled

public static final boolean isMessageProcessingEnabled()
Returns:
true, if calls to LWJGL's processMessages() method are allowed generally.
No updates are performed, if allowOneUpdate() was called and allowUpdateAlways() wasn't after it.

allowOneUpdate

public static final void allowOneUpdate()
This method increases the count of allowed calls to LWJGL's processMessages() method.
Updates are not performed, if isMessageProcessingEnabled() is false.


allowUpdateAlways

public static final void allowUpdateAlways()
Resets the number of allowed calls to LWJGL's processMessages() method to unlimited.
Updates are not performed, if isMessageProcessingEnabled() is false.