checkDPad

public boolean checkDPad(int index)

Checks if the DPad is pressed in a specific direction.

Return

True if the DPad is pressed in the specified direction, false otherwise.

Parameters

index

The index of the DPad direction.


public boolean checkDPad(double angle, boolean inDegrees)

Checks if the DPad is pressed at a specific angle.

Return

True if the DPad is pressed at the specified angle, false otherwise.

Parameters

angle

The angle to check.

inDegrees

Whether the angle is in degrees.