|
ApolloInput Nova 0.2.0
Standalone virtual gamepad library
|
Profile names, aliases, compatibility chains, and capability helpers. More...
#include "apollo/input/gamepad.hpp"#include <algorithm>#include <array>#include <cctype>#include <cmath>#include <cstdint>#include <string_view>#include <tuple>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | apollo |
| namespace | apollo::input |
Functions | |
| const char * | apollo::input::to_string (Profile profile) |
| Convert a profile to a stable short name. | |
| bool | apollo::input::profile_from_string (const std::string &name, Profile &profile) |
| Parse a profile from its short name or a compatible alias. | |
| const char * | apollo::input::to_string (ControllerFamily family) |
| Convert a controller family to a stable short name. | |
| bool | apollo::input::controller_family_from_string (const std::string &name, ControllerFamily &family) |
| Parse a controller family from its short name or alias. | |
| Capabilities | apollo::input::profile_capabilities (Profile profile) |
| Features a profile can expose when the backend supports them. | |
| ProfileIdentity | apollo::input::profile_identity (Profile profile) |
| USB identity associated with a profile. | |
| Profile | apollo::input::recommended_profile (const ControllerDescription &controller) |
| Pick the most capable virtual profile for a client controller. | |
| std::vector< Profile > | apollo::input::profile_compatibility_chain (Profile profile) |
| Return a profile followed by progressively simpler alternatives. | |
| void | apollo::input::sanitize_gamepad_state (GamepadState &state, const AnalogDeadzone &deadzone={}) |
| Remove stick drift, trigger resting noise, and center jitter. | |
Profile names, aliases, compatibility chains, and capability helpers.
Definition in file gamepad.cpp.