Package zombie.core.input
Class Input
java.lang.Object
zombie.core.input.Input
public final class Input
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static int
ANY_CONTROLLER
-
Constructor Summary
Constructors Constructor Description Input()
-
Method Summary
Modifier and Type Method Description int
getAxisCount(int int1)
java.lang.String
getAxisName(int int1, int int2)
float
getAxisValue(int int1, int int2)
int
getButtonCount(int int1)
java.lang.String
getButtonName(int int1, int int2)
Controller
getController(int int1)
int
getControllerCount()
static int
getKeyCode(java.lang.String string)
static java.lang.String
getKeyName(int int1)
void
initControllers()
boolean
isButtonPressedD(int int1, int int2)
boolean
isButtonReleasePress(int int1, int int2)
boolean
isButtonStartPress(int int1, int int2)
boolean
isControllerDownD(int int1)
boolean
isControllerLeftD(int int1)
boolean
isControllerRightD(int int1)
boolean
isControllerUpD(int int1)
void
poll()
void
quit()
void
updateGameThread()
boolean
wasButtonPressed(int int1, int int2)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ANY_CONTROLLER
public static final int ANY_CONTROLLER- See Also:
- Constant Field Values
-
-
Constructor Details
-
Input
public Input()
-
-
Method Details
-
getKeyName
public static java.lang.String getKeyName(int int1) -
getKeyCode
public static int getKeyCode(java.lang.String string) -
getControllerCount
public int getControllerCount() -
getAxisCount
public int getAxisCount(int int1) -
getAxisValue
public float getAxisValue(int int1, int int2) -
getAxisName
public java.lang.String getAxisName(int int1, int int2) -
isControllerLeftD
public boolean isControllerLeftD(int int1) -
isControllerRightD
public boolean isControllerRightD(int int1) -
isControllerUpD
public boolean isControllerUpD(int int1) -
isControllerDownD
public boolean isControllerDownD(int int1) -
isButtonPressedD
public boolean isButtonPressedD(int int1, int int2) -
wasButtonPressed
public boolean wasButtonPressed(int int1, int int2) -
isButtonStartPress
public boolean isButtonStartPress(int int1, int int2) -
isButtonReleasePress
public boolean isButtonReleasePress(int int1, int int2) -
initControllers
public void initControllers() -
poll
public void poll() -
getController
-
getButtonCount
public int getButtonCount(int int1) -
getButtonName
public java.lang.String getButtonName(int int1, int int2) -
updateGameThread
public void updateGameThread() -
quit
public void quit()
-