Skip to content

HeadGazeDevice

eisclimber edited this page Apr 20, 2024 · 1 revision

Head Gaze Device

class in ExPresSXR.Rig.HeadGazeInputDevice / Extends InputDevice
Internal Str added via Component Menu

Description

Defines a (virtual) InputDevice for triggering select InputActions used for the use HeadGaze.
This is done so the device does not interfere with other devices and their specific logic as well as making the input easier to recognize.

Members

Static Properties

  • HeadGazeDevice current: Reference to the current HeadGazeDevice.

Public Properties

  • ButtonControl headGazeSelect: Reference to the Button Control of the HeadGazeSelect-Action.

Public Methods

  • void SetHeadGazeSelectPressed(): Sets the state of the headGazeSelect to pressed/down (1.0f).
  • void SetHeadGazeSelectReleased(): Sets the state of the headGazeSelect to released/up (0.0f).
  • void SetHeadGazeSelectPressState(bool _pressed): Sets the state of the headGazeSelect to the value of pressed.
  • void MakeCurrent(): Sets the device as current device of that type.

Protected Methods

  • void FinishSetup(): The Input System calls this method after it constructs the Device, but before it adds the device to the system.
  • void OnAdded(): Executed when the device is added.
  • void OnRemoved(): Executed when the device is removed.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally