Unigine.InputVRHead Class
Inherits from: | InputVRDevice |
InputVRHead Class
Enums
MODEL_TYPE#
Properties
InputVRHead.MODEL_TYPE ModelType#
The HMD model type.
bool TrackingPositionEnabled#
The true if position tracking is enabled; otherwise, false.
bool TrackingRotationEnabled#
The true if rotation tracking is enabled; otherwise, false.
Members
bool HasButtons ( ) #
Returns a value indicating if the HMD has buttons.Return value
true if there are buttons; otherwise, false.bool IsButtonPressed ( Input.VR_BUTTON button ) #
Returns a value indicating if the specified button is pressed. Check this value to perform continuous actions.Arguments
- Input.VR_BUTTON button - Button.
Return value
true if the button is pressed; otherwise, false.bool IsButtonDown ( Input.VR_BUTTON button ) #
Returns a value indicating if the specified button was pressed during the current frame.Arguments
- Input.VR_BUTTON button - Button.
Return value
true if the button was pressed; otherwise, false.bool IsButtonUp ( Input.VR_BUTTON button ) #
Returns a value indicating if the specified button was released during the current frame.Arguments
- Input.VR_BUTTON button - Button.
Return value
true if the button was released; otherwise, false.InputEventVRButton GetButtonEvent ( Input.VR_BUTTON button ) #
Returns the currently processed HMD button input event.Arguments
- Input.VR_BUTTON button - Button.
Return value
HMD button input event, or null if there are no events for the specified button in the current frame.int GetButtonEvents ( Input.VR_BUTTON button, InputEventVRButton[] OUT_events ) #
Returns the number of input events for the specified HMD button and puts the events to the specified output buffer.Arguments
- Input.VR_BUTTON button - Button.
- InputEventVRButton[]
OUT_events - Buffer with HMD button input events.NoticeThis output buffer is to be filled by the Engine as a result of executing the method.
Return value
Number of input events for the specified HMD button.Last update:
2023-12-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)