|
cgv
|
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... | |
configuration of a controller input axis
| 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.
| 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.
| 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.