cgv
vr::controller_input_config Struct Reference

configuration of a controller input axis More...

#include <vr_kit.h>

Public Member Functions

 controller_input_config ()
 initialize to defaults (dead_zone=precision=0;threshold=0.5)
 

Public Attributes

float dead_zone
 all input values below dead_zone are clamped to 0. More...
 
float precision
 if precision is larger than zero, values are rounded to multiples of precision. More...
 
float threshold
 if value gets larger than threshold a key press event is triggered if this is enabled. More...
 

Detailed Description

configuration of a controller input axis

Member Data Documentation

◆ dead_zone

float vr::controller_input_config::dead_zone

all input values below dead_zone are clamped to 0.

For pad and stick inputs the length of the vector valued position is compared to dead_zone and the zero vector is compared inside of dead zone.

◆ precision

float vr::controller_input_config::precision

if precision is larger than zero, values are rounded to multiples of precision.

If precision is 0.02 then the value 0.031 would be rounded to 0.04.

◆ threshold

float vr::controller_input_config::threshold

if value gets larger than threshold a key press event is triggered if this is enabled.

In case input is pad or stick, a direction pad is emulated and the two thresholds are used to determine direction.


The documentation for this struct was generated from the following files: