DeadzoneStrategy.ixx File
Abstract base class for gamepad axis deadzone normalization strategies. More...
Included Headers
#include <algorithm>
Namespaces Index
| namespace | helios |
| namespace | input |
|
Input handling and management. More... | |
| namespace | gamepad |
|
Gamepad input handling and configuration. More... | |
Classes Index
| class | DeadzoneStrategy |
|
Abstract strategy interface for normalizing gamepad stick input with deadzone handling. More... | |
Description
Abstract base class for gamepad axis deadzone normalization strategies.
File Listing
The file content with the documentation metadata removed is:
12export namespace helios::input::gamepad {
23 class DeadzoneStrategy {
43 static constexpr float DEFAULT_STICK_NOISE_THRESHOLD = 0.002f;
48 virtual ~DeadzoneStrategy() = default;
53 DeadzoneStrategy() = default;
90 [[nodiscard]] float stickNoiseThreshold() const noexcept {
91 return stickNoiseThreshold_;
103 void setStickNoiseThreshold(float threshold) noexcept {
104 stickNoiseThreshold_ = std::clamp(threshold, 0.0f, 0.9f);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.