Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Analog axis deadzone filtering. More...
#include <DeadzoneFilter.h>
Public Member Functions | |
CDeadzoneFilter (IButtonMap *buttonMap, PERIPHERALS::CPeripheral *peripheral) | |
float | FilterAxis (unsigned int axisIndex, float axisValue) |
Apply deadzone filtering to an axis. | |
Analog axis deadzone filtering.
Axis is scaled appropriately, so position is continuous from -1.0 to 1.0:
| / 1.0 | / __|__/ / | / |--| Deadzone
-1.0 / |
After deadzone filtering, the value will be:
CDeadzoneFilter::CDeadzoneFilter | ( | IButtonMap * | buttonMap, |
PERIPHERALS::CPeripheral * | peripheral ) |
float CDeadzoneFilter::FilterAxis | ( | unsigned int | axisIndex, |
float | axisValue ) |
Apply deadzone filtering to an axis.
axisIndex | The axis index |
axisValue | The axis value |