Nuclide
Software Development Kit for id Tech
NSXRInput.h File Reference

Managing of Input sources. More...

Go to the source code of this file.

Classes

class  NSXRInput
 This class represents an input device in the world. More...
 

Macros

#define XR_STATUS_ORG   (1u<<0)
 The NSXRInput is updating its position within the NSXRSpace. More...
 
#define XR_STATUS_ANG   (1u<<1)
 The NSXRInput is updating its aim direction within the NSXRSpace. More...
 
#define XR_STATUS_VEL   (1u<<2)
 The NSXRInput is updating its velocity. More...
 
#define XR_STATUS_AVEL   (1u<<3)
 The NSXRInput is updating its angular velocity. More...
 

Enumerations

enum  xrinput_t { XR_INPUT_UNKNOWN , XR_INPUT_HEAD , XR_INPUT_LEFT , XR_INPUT_RIGHT }
 Various input device types. More...
 

Detailed Description

Managing of Input sources.

An NSXRInput contains the state of a potential input source.

Macro Definition Documentation

◆ XR_STATUS_ANG

#define XR_STATUS_ANG   (1u<<1)

The NSXRInput is updating its aim direction within the NSXRSpace.

◆ XR_STATUS_AVEL

#define XR_STATUS_AVEL   (1u<<3)

The NSXRInput is updating its angular velocity.

◆ XR_STATUS_ORG

#define XR_STATUS_ORG   (1u<<0)

The NSXRInput is updating its position within the NSXRSpace.

◆ XR_STATUS_VEL

#define XR_STATUS_VEL   (1u<<2)

The NSXRInput is updating its velocity.

Enumeration Type Documentation

◆ xrinput_t

enum xrinput_t

Various input device types.

Right now each client will have a single head, a 'left' and a 'right' NSXRInput.

Enumerator
XR_INPUT_UNKNOWN 

Unknown device.

Don't use!

XR_INPUT_HEAD 

Device represents a single head.

A client will have a NSView camera tied to it.

XR_INPUT_LEFT 

Device represents a left hand.

XR_INPUT_RIGHT 

Device represents a right hand.