UxrControllerInput.GetButtonsPressDown Method

Checks if the given button or buttons are being pressed in the current frame but weren’t the previous frame (press-down).

Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public bool GetButtonsPressDown(
	UxrHandSide handSide,
	UxrInputButtons buttons,
	bool getIgnoredInput = false
)

Parameters

 

handSide
Type: UltimateXR.Core.UxrHandSide
Which controller to get input from. In Single devices where IsHandednessSupported is false, such as in gamepads, both hands will address the single device.
buttons
Type: UltimateXR.Devices.UxrInputButtons
Button (or buttons by flag composition) to check
getIgnoredInput (Optional)
Type: System.Boolean
Whether to return ignored input by [!:SetIgnoreControllerInput]

Return Value

Type: Boolean
True if the given button is just started being pressed in the current frame. If more than one button was specified by using flags it will return true only if all meet the condition.

Implements

IUxrControllerInput.GetButtonsPressDown(UxrHandSide, UxrInputButtons, Boolean)

See Also

Reference

UxrControllerInput Class
UltimateXR.Devices Namespace