Skip to content

Files

Latest commit

 

History

History
21 lines (19 loc) · 555 Bytes

EVENTS_ONINPUT.md

File metadata and controls

21 lines (19 loc) · 555 Bytes

OnInputDown/OnInputUp

Add the InputActionHandler to your GameObject and select the Input Action Type Select (FRONT BUTTON) or Menu (BACK BUTTON). Configure if you want the events to trigger only if the GameObject is focused.

public void OnInputDown(BaseInputEventData inputEventData)
{
	if (inputEventData.InputSource.SourceName.Contains("Stylus"))
	{
		// Stylus XR Input Down!!
		// do stuff...
	} else {
		// Other Controller Input Down
		// do stuff...
	}
}