com.jme.input
Class InputSystem

java.lang.Object
  extended bycom.jme.input.InputSystem

public class InputSystem
extends java.lang.Object

InputSystem creates the required input objects (mouse and keyboard) depending on the API desired for the handling of the input. This will allow the client application to only deal with KeyInput and MouseInput not having to worry about the API specifics.

Version:
$Id: InputSystem.java,v 1.4 2004/04/22 22:26:29 renanse Exp $
Author:
Mark Powell
See Also:
KeyInput, MouseInput

Constructor Summary
InputSystem()
           
 
Method Summary
static void createInputSystem(java.lang.String system)
          createInputSystem initializes the input devices using the provided API string.
static KeyInput getKeyInput()
          getKeyInput retrieves the key input device.
static MouseInput getMouseInput()
          getMouseInput retrieves the mouse input device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputSystem

public InputSystem()
Method Detail

createInputSystem

public static void createInputSystem(java.lang.String system)
createInputSystem initializes the input devices using the provided API string.

Parameters:
system - the input API to use, e.g. "LWJGL" or "JInput".

getKeyInput

public static KeyInput getKeyInput()
getKeyInput retrieves the key input device.

Returns:
the key input device.

getMouseInput

public static MouseInput getMouseInput()
getMouseInput retrieves the mouse input device.

Returns:
the mouse input device.