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.
float RefreshRate#
The display refresh rate, in Hz.
float[] SupportedRefreshRates#
The vector of supported display refresh rates, in Hz.
Members
bool HasButtons ( ) #
Returns a value indicating if the HMD has buttons.Return value
true if there are buttons; otherwise, false.float[] GetSupportedRefreshRates ( ) #
Returns an array of supported display refresh rates, in Hz, with at least one supported refresh rate.Return value
The vector of supported display refresh rates, in Hz.void SetRefreshRate ( float rate ) #
Sets the display refresh rate, if supported.Arguments
- float rate - The display refresh rate, in Hz.
float GetRefreshRate ( ) #
Returns the current display refresh rate, in Hz.Return value
The display refresh rate, in Hz.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.This 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:
13.12.2024
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter