Field Summary |
|
static final int |
ACTION This is the Left Mouse Button by default |
static final int |
CHANGE_VIEW_MODE This is the Q key by default |
static final int |
FLY_FASTER This is the Shift key by default |
static final int |
FLY_SLOWER This is the Ctrl key by default |
static final int |
MOVE_BACKWARD This is the S key by default |
static final int |
MOVE_DOWN This is the X key by default |
static final int |
MOVE_FORWARD This is the W key by default |
static final int |
MOVE_LEFT This is the A key by default |
static final int |
MOVE_RIGHT This is the D key by default |
static final int |
MOVE_UP This is the Space key by default |
static final int |
NEXT_CAR This is the C key by default |
static final int |
NEXT_SEAT This is the V key by default |
static final int |
NEXT_TRAIN This is the T key by default |
Method Summary |
|
static String |
getAssignedKeyString(int button) Returns the assigned keys/buttons as a string. |
static bool |
isPressed(int button) Returns true if the button is pressed that is associated with a specific command or key |
Field Detail |
Method Detail |
public static String getAssignedKeyString(int button)
Returns the assigned keys/buttons as a string.
Parameters:
button | - | The button constant. See constants for values that can be used. |
Returns:
String that represents the assigned key or mouse button or controller button. Empty string when no keys were assigned.
Since:
2.0.5.6
public static bool isPressed(int button)
Returns true if the button is pressed that is associated with a specific command or key
Parameters:
button | - | The button constant. See constants for values that can be used. |
Returns:
Returns true if the button is currently pressed or was pressed within the last frame.
Since:
2.0.5.6