com.b3dgs.lionengine.input.impl
Class InputFactory

java.lang.Object
  extended by com.b3dgs.lionengine.input.impl.InputFactory
All Implemented Interfaces:
Input

public final class InputFactory
extends java.lang.Object
implements Input


Field Summary
 
Fields inherited from interface com.b3dgs.lionengine.Input
INPUT
 
Method Summary
 Keyboard createKeyboard()
          Create a keyboard input.
 Mouse createMouse(float xRatio, float yRatio)
          Create a mouse input.
static Input getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Input getInstance()
Returns:
singleton.

createKeyboard

public Keyboard createKeyboard()
Description copied from interface: Input
Create a keyboard input.

Specified by:
createKeyboard in interface Input
Returns:
created Keyboard listener.

createMouse

public Mouse createMouse(float xRatio,
                         float yRatio)
Description copied from interface: Input
Create a mouse input.

Specified by:
createMouse in interface Input
Returns:
created Mouse listener.