Nuclide
Software Development Kit for id Tech
|
This class represents an input device in the world. More...
#include <NSXRInput.h>
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... | |
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.
|
virtual |
Returns the rotational movement of this NSXRInput.
Returns the type of NSXRInput, check xrinput_t for details.
Sets which NSXRSpace this input belongs to.