Class Gamepad
java.lang.Object
org.wpilib.driverstation.GenericHID
org.wpilib.driverstation.Gamepad
- All Implemented Interfaces:
Sendable
Handle input from Gamepad controllers connected to the Driver Station.
This class handles Gamepad input that comes from the Driver Station. Each time a value is requested the most recent value is returned. There is a single class instance for each controller and the mapping of ports to hardware buttons depends on the code in the Driver Station.
Only first party controllers from Generic are guaranteed to have the correct mapping, and only through the official NI DS. Sim is not guaranteed to have the same mapping, as well as any 3rd party controllers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents an axis on an Gamepad.static enumRepresents a digital button on a Gamepad.Nested classes/interfaces inherited from class GenericHID
GenericHID.HIDType, GenericHID.RumbleType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs an event instance around the Back button's digital signal.Constructs an event instance around the D-pad down button's digital signal.Constructs an event instance around the D-pad left button's digital signal.Constructs an event instance around the D-pad right button's digital signal.Constructs an event instance around the D-pad up button's digital signal.Constructs an event instance around the East Face button's digital signal.booleanRead the value of the Back button on the controller.booleanWhether the Back button was pressed since the last check.booleanWhether the Back button was released since the last check.booleanRead the value of the D-pad down button on the controller.booleanWhether the D-pad down button was pressed since the last check.booleanWhether the D-pad down button was released since the last check.booleanRead the value of the D-pad left button on the controller.booleanWhether the D-pad left button was pressed since the last check.booleanWhether the D-pad left button was released since the last check.booleanRead the value of the D-pad right button on the controller.booleanWhether the D-pad right button was pressed since the last check.booleanWhether the D-pad right button was released since the last check.booleanRead the value of the D-pad up button on the controller.booleanWhether the D-pad up button was pressed since the last check.booleanWhether the D-pad up button was released since the last check.booleanRead the value of the East Face button on the controller.booleanWhether the East Face button was pressed since the last check.booleanWhether the East Face button was released since the last check.booleanRead the value of the Guide button on the controller.booleanWhether the Guide button was pressed since the last check.booleanWhether the Guide button was released since the last check.booleanRead the value of the right bumper button on the controller.booleanWhether the right bumper button was pressed since the last check.booleanWhether the right bumper button was released since the last check.booleanRead the value of the Left Paddle 1 button on the controller.booleanWhether the Left Paddle 1 button was pressed since the last check.booleanWhether the Left Paddle 1 button was released since the last check.booleanRead the value of the Left Paddle 2 button on the controller.booleanWhether the Left Paddle 2 button was pressed since the last check.booleanWhether the Left Paddle 2 button was released since the last check.booleanRead the value of the left stick button on the controller.booleanWhether the left stick button was pressed since the last check.booleanWhether the left stick button was released since the last check.doubleGet the left trigger axis value of the controller.doublegetLeftX()Get the X axis value of left side of the controller.doublegetLeftY()Get the Y axis value of left side of the controller.booleanRead the value of the Miscellaneous 1 button on the controller.booleanWhether the Miscellaneous 1 button was pressed since the last check.booleanWhether the Miscellaneous 1 button was released since the last check.booleanRead the value of the Miscellaneous 2 button on the controller.booleanWhether the Miscellaneous 2 button was pressed since the last check.booleanWhether the Miscellaneous 2 button was released since the last check.booleanRead the value of the Miscellaneous 3 button on the controller.booleanWhether the Miscellaneous 3 button was pressed since the last check.booleanWhether the Miscellaneous 3 button was released since the last check.booleanRead the value of the Miscellaneous 4 button on the controller.booleanWhether the Miscellaneous 4 button was pressed since the last check.booleanWhether the Miscellaneous 4 button was released since the last check.booleanRead the value of the Miscellaneous 5 button on the controller.booleanWhether the Miscellaneous 5 button was pressed since the last check.booleanWhether the Miscellaneous 5 button was released since the last check.booleanRead the value of the Miscellaneous 6 button on the controller.booleanWhether the Miscellaneous 6 button was pressed since the last check.booleanWhether the Miscellaneous 6 button was released since the last check.booleanRead the value of the North Face button on the controller.booleanWhether the North Face button was pressed since the last check.booleanWhether the North Face button was released since the last check.booleanRead the value of the right bumper button on the controller.booleanWhether the right bumper button was pressed since the last check.booleanWhether the right bumper button was released since the last check.booleanRead the value of the Right Paddle 1 button on the controller.booleanWhether the Right Paddle 1 button was pressed since the last check.booleanWhether the Right Paddle 1 button was released since the last check.booleanRead the value of the Right Paddle 2 button on the controller.booleanWhether the Right Paddle 2 button was pressed since the last check.booleanWhether the Right Paddle 2 button was released since the last check.booleanRead the value of the right stick button on the controller.booleanWhether the right stick button was pressed since the last check.booleanWhether the right stick button was released since the last check.doubleGet the right trigger axis value of the controller.doubleGet the X axis value of right side of the controller.doubleGet the Y axis value of right side of the controller.booleanRead the value of the South Face button on the controller.booleanWhether the South Face button was pressed since the last check.booleanWhether the South Face button was released since the last check.booleanRead the value of the Start button on the controller.booleanWhether the Start button was pressed since the last check.booleanWhether the Start button was released since the last check.booleanRead the value of the Touchpad button on the controller.booleanWhether the Touchpad button was pressed since the last check.booleanWhether the Touchpad button was released since the last check.booleanRead the value of the West Face button on the controller.booleanWhether the West Face button was pressed since the last check.booleanWhether the West Face button was released since the last check.Constructs an event instance around the Guide button's digital signal.voidinitSendable(SendableBuilder builder) Initializes thisSendableobject.leftBumper(EventLoop loop) Constructs an event instance around the right bumper button's digital signal.leftPaddle1(EventLoop loop) Constructs an event instance around the Left Paddle 1 button's digital signal.leftPaddle2(EventLoop loop) Constructs an event instance around the Left Paddle 2 button's digital signal.Constructs an event instance around the left stick button's digital signal.leftTrigger(double threshold, EventLoop loop) Constructs an event instance around the axis value of the left trigger.leftTrigger(EventLoop loop) Constructs an event instance around the axis value of the left trigger.Constructs an event instance around the Miscellaneous 1 button's digital signal.Constructs an event instance around the Miscellaneous 2 button's digital signal.Constructs an event instance around the Miscellaneous 3 button's digital signal.Constructs an event instance around the Miscellaneous 4 button's digital signal.Constructs an event instance around the Miscellaneous 5 button's digital signal.Constructs an event instance around the Miscellaneous 6 button's digital signal.Constructs an event instance around the North Face button's digital signal.rightBumper(EventLoop loop) Constructs an event instance around the right bumper button's digital signal.rightPaddle1(EventLoop loop) Constructs an event instance around the Right Paddle 1 button's digital signal.rightPaddle2(EventLoop loop) Constructs an event instance around the Right Paddle 2 button's digital signal.rightStick(EventLoop loop) Constructs an event instance around the right stick button's digital signal.rightTrigger(double threshold, EventLoop loop) Constructs an event instance around the axis value of the right trigger.rightTrigger(EventLoop loop) Constructs an event instance around the axis value of the right trigger.Constructs an event instance around the South Face button's digital signal.Constructs an event instance around the Start button's digital signal.Constructs an event instance around the Touchpad button's digital signal.Constructs an event instance around the West Face button's digital signal.Methods inherited from class GenericHID
axisGreaterThan, axisLessThan, button, getAxesAvailable, getAxesMaximumIndex, getButtonsAvailable, getButtonsMaximumIndex, getGamepadType, getName, getPort, getPOV, getPOV, getPOVsAvailable, getPOVsMaximumIndex, getRawAxis, getRawButton, getRawButtonPressed, getRawButtonReleased, getSupportedOutputs, getTouchpadFinger, getTouchpadFingerAvailable, isConnected, pov, pov, povCenter, povDown, povDownLeft, povDownRight, povLeft, povRight, povUp, povUpLeft, povUpRight, setLeds, setRumble
-
Constructor Details
-
Gamepad
Construct an instance of a controller.- Parameters:
port- The port index on the Driver Station that the controller is plugged into (0-5).
-
-
Method Details
-
getLeftX
Get the X axis value of left side of the controller. Right is positive.- Returns:
- The axis value.
-
getLeftY
Get the Y axis value of left side of the controller. Back is positive.- Returns:
- The axis value.
-
getRightX
Get the X axis value of right side of the controller. Right is positive.- Returns:
- The axis value.
-
getRightY
Get the Y axis value of right side of the controller. Back is positive.- Returns:
- The axis value.
-
getLeftTriggerAxis
Get the left trigger axis value of the controller. Note that this axis is bound to the range of [0, 1] as opposed to the usual [-1, 1].- Returns:
- The axis value.
-
leftTrigger
Constructs an event instance around the axis value of the left trigger. The returned trigger will be true when the axis value is greater thanthreshold.- Parameters:
threshold- the minimum axis value for the returnedBooleanEventto be true. This value should be in the range [0, 1] where 0 is the unpressed state of the axis.loop- the event loop instance to attach the event to.- Returns:
- an event instance that is true when the left trigger's axis exceeds the provided threshold, attached to the given event loop
-
leftTrigger
Constructs an event instance around the axis value of the left trigger. The returned trigger will be true when the axis value is greater than 0.5.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance that is true when the left trigger's axis exceeds the provided threshold, attached to the given event loop
-
getRightTriggerAxis
Get the right trigger axis value of the controller. Note that this axis is bound to the range of [0, 1] as opposed to the usual [-1, 1].- Returns:
- The axis value.
-
rightTrigger
Constructs an event instance around the axis value of the right trigger. The returned trigger will be true when the axis value is greater thanthreshold.- Parameters:
threshold- the minimum axis value for the returnedBooleanEventto be true. This value should be in the range [0, 1] where 0 is the unpressed state of the axis.loop- the event loop instance to attach the event to.- Returns:
- an event instance that is true when the right trigger's axis exceeds the provided threshold, attached to the given event loop
-
rightTrigger
Constructs an event instance around the axis value of the right trigger. The returned trigger will be true when the axis value is greater than 0.5.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance that is true when the right trigger's axis exceeds the provided threshold, attached to the given event loop
-
getSouthFaceButton
Read the value of the South Face button on the controller.- Returns:
- The state of the button.
-
getSouthFaceButtonPressed
Whether the South Face button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getSouthFaceButtonReleased
Whether the South Face button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
southFace
Constructs an event instance around the South Face button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the South Face button's digital signal attached to the given loop.
-
getEastFaceButton
Read the value of the East Face button on the controller.- Returns:
- The state of the button.
-
getEastFaceButtonPressed
Whether the East Face button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getEastFaceButtonReleased
Whether the East Face button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
eastFace
Constructs an event instance around the East Face button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the East Face button's digital signal attached to the given loop.
-
getWestFaceButton
Read the value of the West Face button on the controller.- Returns:
- The state of the button.
-
getWestFaceButtonPressed
Whether the West Face button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getWestFaceButtonReleased
Whether the West Face button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
westFace
Constructs an event instance around the West Face button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the West Face button's digital signal attached to the given loop.
-
getNorthFaceButton
Read the value of the North Face button on the controller.- Returns:
- The state of the button.
-
getNorthFaceButtonPressed
Whether the North Face button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getNorthFaceButtonReleased
Whether the North Face button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
northFace
Constructs an event instance around the North Face button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the North Face button's digital signal attached to the given loop.
-
getBackButton
Read the value of the Back button on the controller.- Returns:
- The state of the button.
-
getBackButtonPressed
Whether the Back button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getBackButtonReleased
Whether the Back button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
back
Constructs an event instance around the Back button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Back button's digital signal attached to the given loop.
-
getGuideButton
Read the value of the Guide button on the controller.- Returns:
- The state of the button.
-
getGuideButtonPressed
Whether the Guide button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getGuideButtonReleased
Whether the Guide button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
guide
Constructs an event instance around the Guide button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Guide button's digital signal attached to the given loop.
-
getStartButton
Read the value of the Start button on the controller.- Returns:
- The state of the button.
-
getStartButtonPressed
Whether the Start button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getStartButtonReleased
Whether the Start button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
start
Constructs an event instance around the Start button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Start button's digital signal attached to the given loop.
-
getLeftStickButton
Read the value of the left stick button on the controller.- Returns:
- The state of the button.
-
getLeftStickButtonPressed
Whether the left stick button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getLeftStickButtonReleased
Whether the left stick button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
leftStick
Constructs an event instance around the left stick button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the left stick button's digital signal attached to the given loop.
-
getRightStickButton
Read the value of the right stick button on the controller.- Returns:
- The state of the button.
-
getRightStickButtonPressed
Whether the right stick button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getRightStickButtonReleased
Whether the right stick button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
rightStick
Constructs an event instance around the right stick button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the right stick button's digital signal attached to the given loop.
-
getLeftBumperButton
Read the value of the right bumper button on the controller.- Returns:
- The state of the button.
-
getLeftBumperButtonPressed
Whether the right bumper button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getLeftBumperButtonReleased
Whether the right bumper button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
leftBumper
Constructs an event instance around the right bumper button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the right bumper button's digital signal attached to the given loop.
-
getRightBumperButton
Read the value of the right bumper button on the controller.- Returns:
- The state of the button.
-
getRightBumperButtonPressed
Whether the right bumper button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getRightBumperButtonReleased
Whether the right bumper button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
rightBumper
Constructs an event instance around the right bumper button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the right bumper button's digital signal attached to the given loop.
-
getDpadUpButton
Read the value of the D-pad up button on the controller.- Returns:
- The state of the button.
-
getDpadUpButtonPressed
Whether the D-pad up button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getDpadUpButtonReleased
Whether the D-pad up button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
dpadUp
Constructs an event instance around the D-pad up button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the D-pad up button's digital signal attached to the given loop.
-
getDpadDownButton
Read the value of the D-pad down button on the controller.- Returns:
- The state of the button.
-
getDpadDownButtonPressed
Whether the D-pad down button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getDpadDownButtonReleased
Whether the D-pad down button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
dpadDown
Constructs an event instance around the D-pad down button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the D-pad down button's digital signal attached to the given loop.
-
getDpadLeftButton
Read the value of the D-pad left button on the controller.- Returns:
- The state of the button.
-
getDpadLeftButtonPressed
Whether the D-pad left button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getDpadLeftButtonReleased
Whether the D-pad left button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
dpadLeft
Constructs an event instance around the D-pad left button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the D-pad left button's digital signal attached to the given loop.
-
getDpadRightButton
Read the value of the D-pad right button on the controller.- Returns:
- The state of the button.
-
getDpadRightButtonPressed
Whether the D-pad right button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getDpadRightButtonReleased
Whether the D-pad right button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
dpadRight
Constructs an event instance around the D-pad right button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the D-pad right button's digital signal attached to the given loop.
-
getMisc1Button
Read the value of the Miscellaneous 1 button on the controller.- Returns:
- The state of the button.
-
getMisc1ButtonPressed
Whether the Miscellaneous 1 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc1ButtonReleased
Whether the Miscellaneous 1 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc1
Constructs an event instance around the Miscellaneous 1 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 1 button's digital signal attached to the given loop.
-
getRightPaddle1Button
Read the value of the Right Paddle 1 button on the controller.- Returns:
- The state of the button.
-
getRightPaddle1ButtonPressed
Whether the Right Paddle 1 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getRightPaddle1ButtonReleased
Whether the Right Paddle 1 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
rightPaddle1
Constructs an event instance around the Right Paddle 1 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Right Paddle 1 button's digital signal attached to the given loop.
-
getLeftPaddle1Button
Read the value of the Left Paddle 1 button on the controller.- Returns:
- The state of the button.
-
getLeftPaddle1ButtonPressed
Whether the Left Paddle 1 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getLeftPaddle1ButtonReleased
Whether the Left Paddle 1 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
leftPaddle1
Constructs an event instance around the Left Paddle 1 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Left Paddle 1 button's digital signal attached to the given loop.
-
getRightPaddle2Button
Read the value of the Right Paddle 2 button on the controller.- Returns:
- The state of the button.
-
getRightPaddle2ButtonPressed
Whether the Right Paddle 2 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getRightPaddle2ButtonReleased
Whether the Right Paddle 2 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
rightPaddle2
Constructs an event instance around the Right Paddle 2 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Right Paddle 2 button's digital signal attached to the given loop.
-
getLeftPaddle2Button
Read the value of the Left Paddle 2 button on the controller.- Returns:
- The state of the button.
-
getLeftPaddle2ButtonPressed
Whether the Left Paddle 2 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getLeftPaddle2ButtonReleased
Whether the Left Paddle 2 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
leftPaddle2
Constructs an event instance around the Left Paddle 2 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Left Paddle 2 button's digital signal attached to the given loop.
-
getTouchpadButton
Read the value of the Touchpad button on the controller.- Returns:
- The state of the button.
-
getTouchpadButtonPressed
Whether the Touchpad button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getTouchpadButtonReleased
Whether the Touchpad button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
touchpad
Constructs an event instance around the Touchpad button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Touchpad button's digital signal attached to the given loop.
-
getMisc2Button
Read the value of the Miscellaneous 2 button on the controller.- Returns:
- The state of the button.
-
getMisc2ButtonPressed
Whether the Miscellaneous 2 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc2ButtonReleased
Whether the Miscellaneous 2 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc2
Constructs an event instance around the Miscellaneous 2 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 2 button's digital signal attached to the given loop.
-
getMisc3Button
Read the value of the Miscellaneous 3 button on the controller.- Returns:
- The state of the button.
-
getMisc3ButtonPressed
Whether the Miscellaneous 3 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc3ButtonReleased
Whether the Miscellaneous 3 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc3
Constructs an event instance around the Miscellaneous 3 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 3 button's digital signal attached to the given loop.
-
getMisc4Button
Read the value of the Miscellaneous 4 button on the controller.- Returns:
- The state of the button.
-
getMisc4ButtonPressed
Whether the Miscellaneous 4 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc4ButtonReleased
Whether the Miscellaneous 4 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc4
Constructs an event instance around the Miscellaneous 4 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 4 button's digital signal attached to the given loop.
-
getMisc5Button
Read the value of the Miscellaneous 5 button on the controller.- Returns:
- The state of the button.
-
getMisc5ButtonPressed
Whether the Miscellaneous 5 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc5ButtonReleased
Whether the Miscellaneous 5 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc5
Constructs an event instance around the Miscellaneous 5 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 5 button's digital signal attached to the given loop.
-
getMisc6Button
Read the value of the Miscellaneous 6 button on the controller.- Returns:
- The state of the button.
-
getMisc6ButtonPressed
Whether the Miscellaneous 6 button was pressed since the last check.- Returns:
- Whether the button was pressed since the last check.
-
getMisc6ButtonReleased
Whether the Miscellaneous 6 button was released since the last check.- Returns:
- Whether the button was released since the last check.
-
misc6
Constructs an event instance around the Miscellaneous 6 button's digital signal.- Parameters:
loop- the event loop instance to attach the event to.- Returns:
- an event instance representing the Miscellaneous 6 button's digital signal attached to the given loop.
-
initSendable
Description copied from interface:SendableInitializes thisSendableobject.- Specified by:
initSendablein interfaceSendable- Parameters:
builder- sendable builder
-