Gamepad Button
R2026bRepresent one of the 12 buttons on VEX V5 Controller gamepad and read the logical value of the button
Libraries:
Simulink Coder Support Package for VEX EDR V5 Robot Brain /
Gamepad
Description
Add-On Required: This feature requires the Simulink Coder Support Package for VEX EDR V5 Robot Brain add-on.
The Gamepad Button block is used to represent one of the 12 buttons on the VEX® V5 Controller gamepad, and read the corresponding logical value (1 or 0) based on whether the button is pressed or released.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"vexv5lib/Gamepad/Gamepad Button"
Example: add_block("vexv5lib/Gamepad/Gamepad Button","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2018b
