QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::GamepadSettings Struct Reference

Settings that filter the axes of the gamepads. More...

#include <quasar/core/Gamepads.h>

Public Attributes

float StickDeadZone = 0.15f
 Distance from the center under which a stick reads as 0.
float TriggerDeadZone = 0.05f
 Value under which a trigger reads as 0, on its range from 0 to 1.
float AxisEventThreshold = 0.01f
 Change needed to send a GamepadAxisMovedEvent, so that a moving stick does not send an event every frame for tiny changes.

Detailed Description

Settings that filter the axes of the gamepads.

Member Data Documentation

◆ StickDeadZone

float Quasar::GamepadSettings::StickDeadZone = 0.15f

Distance from the center under which a stick reads as 0.

A stick at rest is never exactly at the center. The dead zone is a circle, so diagonals stay diagonals, and the values past it are scaled to start from 0.

◆ TriggerDeadZone

float Quasar::GamepadSettings::TriggerDeadZone = 0.05f

Value under which a trigger reads as 0, on its range from 0 to 1.

The values past it are scaled to start from 0.

◆ AxisEventThreshold

float Quasar::GamepadSettings::AxisEventThreshold = 0.01f

Change needed to send a GamepadAxisMovedEvent, so that a moving stick does not send an event every frame for tiny changes.

Reaching 0 or the end of the range always sends an event.


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