Nuclide
Software Development Kit for id Technology
|
This class represents an input device in the world.
An input device can be a few different things. They can interpret updates from an external source, such as a VR headset or a VR controller. In the case of a headset (XR_INPUT_HEAD) it will let Nuclide know where we will position the client's NSView within the world.
Other sources, such as keyboard and mice can totally position and control these inputs as well.
Each input has the ability to have a NSWeapon reference tied to it. That way you can dual (or even triple) wield them.
Public Member Functions | |
void | NSXRInput (void) |
virtual void | SetType (xrinput_t) |
Sets the NSXRInput type. More... | |
virtual void | SetParentSpace (NSXRSpace) |
Sets which NSXRSpace this input belongs to. More... | |
virtual vector | GetOrigin (void) |
Returns the world space position of this NSXRInput. More... | |
virtual vector | GetAngles (void) |
Returns the direction this NSXRInput is facing. More... | |
virtual vector | GetVelocity (void) |
Returns the current velocity of this NSXRInput. More... | |
virtual vector | GetAngularVelocity (void) |
Returns the rotational movement of this NSXRInput. More... | |
virtual unsigned int | GetStatus (void) |
Returns the status of the NSXRInput. More... | |
virtual unsigned int | GetWeapon (void) |
Returns the weapon this NSXRInput is wielding. More... | |
virtual xrinput_t | GetType (void) |
Returns the type of NSXRInput, check xrinput_t for details. More... | |
virtual bool | IsAvailable (void) |
Returns if this NSXRInput is available/active. More... | |
virtual void | InputFrame (void) |
Run every single input event. More... | |
virtual void | PrintInfo (void) |
Debug function that can be called every single frame. More... | |
void NSXRInput::NSXRInput | ( | void | ) |
|
virtual |
Returns the direction this NSXRInput is facing.
|
virtual |
Returns the rotational movement of this NSXRInput.
|
virtual |
Returns the world space position of this NSXRInput.
|
virtual |
Returns the status of the NSXRInput.
|
virtual |
Returns the type of NSXRInput, check xrinput_t for details.
|
virtual |
Returns the current velocity of this NSXRInput.
|
virtual |
Returns the weapon this NSXRInput is wielding.
|
virtual |
Run every single input event.
|
virtual |
Returns if this NSXRInput is available/active.
|
virtual |
Debug function that can be called every single frame.
|
virtual |
Sets which NSXRSpace this input belongs to.
|
virtual |
Sets the NSXRInput type.