IUxrControllerInput.GetButtonsEvent Method

Checks if a given input event took place for a button or all buttons in a set in the current frame.

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

Syntax

C#

bool GetButtonsEvent(
	UxrHandSide handSide,
	UxrInputButtons buttons,
	UxrButtonEventType buttonEventType,
	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. If it’s a combination, all buttons require to meet the event criteria
buttonEventType
Type: UltimateXR.Devices.UxrButtonEventType
Input event type to check for
getIgnoredInput (Optional)
Type: System.Boolean
Whether to return ignored input by [!:SetIgnoreControllerInput]

Return Value

Type: Boolean
True if the given event happened during the current frame for the specified button. If more than one button was specified by using flags it will return true only if the input event happened for all the given buttons.

See Also

Reference

IUxrControllerInput Interface
UltimateXR.Devices Namespace