public class NetGamepad
extends java.lang.Object
Constructor and Description |
---|
NetGamepad(java.lang.String key,
int joyNum,
int buttonNum) |
Modifier and Type | Method and Description |
---|---|
NetButton |
getButton(int index)
Gets the NetButton at index.
|
NetJoystick |
getJoystick(int index)
Gets the NetJoystick at index.
|
double |
getJoystickX(int joystickIndex)
Gets the X axis value of the NetJoystick at joystickIndex.
|
double |
getJoystickY(int joystickIndex)
Gets the Y axis value of the NetJoystick at joystickIndex.
|
boolean |
isButtonPressed(int buttonIndex)
Checks if the NetButton at buttonIndex is pressed.
|
public boolean isButtonPressed(int buttonIndex)
buttonIndex
- The index of the NetButton.public double getJoystickX(int joystickIndex)
joystickIndex
- The index of the NetJoystick.public double getJoystickY(int joystickIndex)
joystickIndex
- The index of the NetJoystick.public NetJoystick getJoystick(int index)
index
- The index of the NetJoystick.public NetButton getButton(int index)
index
- The index of the NetButton