DigitalInput ButtonB { get; set; }

robot_2Generated
code_blocksInput

Description

The ButtonB property represents the secondary button on a VR controller. This button is typically labeled as "B" on most VR controllers, but it may be labeled as "Y" on Oculus Touch controllers. It is a digital input, meaning it can be either pressed or not pressed.

Usage

To check if the ButtonB is pressed, you can access this property from an instance of VRController and use its methods to determine the button's state.

Example

VRController controller = new VRController();

// Check if ButtonB is pressed
if (controller.ButtonB.IsPressed)
{
    // Perform action when ButtonB is pressed
}