Documentation for the Unity C# Library
Loading...
Searching...
No Matches
InputListener Class Reference
Inheritance diagram for InputListener:
[legend]

Public Member Functions

Vector2 GetAxis (Hand hand)
 
bool IsButtonPressed (Hand hand, CommonButton button)
 

Events

Action< Hand > TriggerPressed
 
Action< Hand > TriggerReleased
 

Private Member Functions

void Update ()
 

Private Attributes

XRHandControllerLink _leftController
 [SerializeField]
 
bool _leftTriggerPressed
 
XRHandControllerLink _rightController
 [SerializeField]
 
bool _rightTriggerPressed
 

Detailed Description

Definition at line 10 of file InputListener.cs.

Member Function Documentation

◆ GetAxis()

Vector2 InputListener.GetAxis ( Hand hand)
inline

Definition at line 70 of file InputListener.cs.

Here is the caller graph for this function:

◆ IsButtonPressed()

bool InputListener.IsButtonPressed ( Hand hand,
CommonButton button )
inline

Definition at line 30 of file InputListener.cs.

◆ Update()

void InputListener.Update ( )
inlineprivate

Definition at line 45 of file InputListener.cs.

Member Data Documentation

◆ _leftController

XRHandControllerLink InputListener._leftController
privateSerializeField

[SerializeField]

Definition at line 25 of file InputListener.cs.

◆ _leftTriggerPressed

bool InputListener._leftTriggerPressed
private

Definition at line 28 of file InputListener.cs.

◆ _rightController

XRHandControllerLink InputListener._rightController
privateSerializeField

[SerializeField]

Definition at line 21 of file InputListener.cs.

◆ _rightTriggerPressed

bool InputListener._rightTriggerPressed
private

Definition at line 27 of file InputListener.cs.

Event Documentation

◆ TriggerPressed

Action<Hand> InputListener.TriggerPressed

Definition at line 12 of file InputListener.cs.

◆ TriggerReleased

Action<Hand> InputListener.TriggerReleased

Definition at line 13 of file InputListener.cs.


The documentation for this class was generated from the following file: