|
ApolloInput Nova 0.2.0
Standalone virtual gamepad library
|
Backend and device interfaces for the Apollo input library. More...
#include "apollo/input/gamepad.hpp"#include <functional>#include <memory>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | apollo::input::Feedback |
| Feedback payload from the operating system or a game. More... | |
| class | apollo::input::Device |
| One created virtual input device. More... | |
| class | apollo::input::Backend |
| Factory for virtual input devices. More... | |
Namespaces | |
| namespace | apollo |
| namespace | apollo::input |
Typedefs | |
| using | apollo::input::FeedbackCallback = std::function<void(const Feedback &)> |
| Callback invoked when the virtual device receives feedback. | |
Enumerations | |
| enum class | apollo::input::BackendKind { apollo::input::automatic = 0 , apollo::input::vigem , apollo::input::uinput , apollo::input::null_backend } |
| Kind of backend selected by the caller. More... | |
| enum class | apollo::input::FeedbackType { apollo::input::rumble = 0 , apollo::input::led , apollo::input::adaptive_trigger , apollo::input::unknown } |
| Feedback message received from the virtual device. More... | |
Functions | |
| std::unique_ptr< Backend > | apollo::input::create_backend (BackendKind kind=BackendKind::automatic) |
| Create a backend for the current platform. | |
| const char * | apollo::input::to_string (BackendKind kind) |
| Convert a backend kind to a stable short name. | |
| bool | apollo::input::backend_from_string (const std::string &name, BackendKind &kind) |
| Parse a backend kind from its short name or a compatible alias. | |
Backend and device interfaces for the Apollo input library.
Definition in file backend.hpp.