public class SonyGamepadPS4 extends Gamepad
Gamepad.GamepadCallback, Gamepad.Type
Modifier and Type | Field and Description |
---|---|
protected boolean |
TriggerFixLeft |
protected boolean |
TriggerFixRight |
a, b, back, circle, cross, dpad_down, dpad_left, dpad_right, dpad_up, dpadThreshold, guide, id, ID_SYNTHETIC, ID_UNASSOCIATED, joystickDeadzone, left_bumper, left_stick_button, left_stick_x, left_stick_y, left_trigger, options, pid, ps, right_bumper, right_stick_button, right_stick_x, right_stick_y, right_trigger, share, square, start, timestamp, touchpad, triangle, user, vid, x, y
Constructor and Description |
---|
SonyGamepadPS4() |
SonyGamepadPS4(Gamepad.GamepadCallback callback) |
Modifier and Type | Method and Description |
---|---|
static boolean |
matchesVidPid(int vid,
int pid) |
java.lang.String |
toString()
Display a summary of this gamepad, including the state of all buttons, analog sticks, and triggers
|
Gamepad.Type |
type()
Get the type of gamepad as a
Gamepad.Type . |
void |
update(android.view.KeyEvent event)
Update the gamepad based on a KeyEvent
|
void |
update(android.view.MotionEvent event)
Update the gamepad based on a MotionEvent
|
atRest, callCallback, cleanMotionValues, clearWhitelistFilter, copy, enableWhitelistFilter, fromByteArray, genericToString, getGamepadId, getRobocolMsgType, getUser, isGamepadDevice, pressed, ps4ToString, refreshTimestamp, reset, setGamepadId, setJoystickDeadzone, setTimestamp, setUser, setVidPid, toByteArray, updateButtonAliases
protected boolean TriggerFixLeft
protected boolean TriggerFixRight
public SonyGamepadPS4()
public SonyGamepadPS4(Gamepad.GamepadCallback callback)
public void update(android.view.KeyEvent event)
public void update(android.view.MotionEvent event)
public Gamepad.Type type()
Gamepad
Gamepad.Type
. This method defaults to "UNKNOWN".public java.lang.String toString()
public static boolean matchesVidPid(int vid, int pid)