orc.util
Class GamePad
java.lang.Object
orc.util.GamePad
public class GamePad
- extends java.lang.Object
A simple driver for Linux joysticks.
Method Summary |
double |
getAxis(int axis)
|
boolean |
getButton(int button)
|
static void |
main(java.lang.String[] args)
|
int |
waitForAnyButtonPress()
Returns once any button has been pressed, returning the button
id. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GamePad
public GamePad()
GamePad
public GamePad(java.lang.String path)
getAxis
public double getAxis(int axis)
getButton
public boolean getButton(int button)
waitForAnyButtonPress
public int waitForAnyButtonPress()
- Returns once any button has been pressed, returning the button
id. This is useful with cordless game pads as a way of ensuring
that there's actually a device connected.
main
public static void main(java.lang.String[] args)