ApolloInput Nova 0.2.0
Standalone virtual gamepad library
Loading...
Searching...
No Matches
backend.cpp File Reference

Backend selection, compatibility fallback, and name helpers. More...

#include "apollo/input/backend.hpp"
#include "backends/backend_factory.hpp"
#include <algorithm>
#include <array>
#include <cctype>
#include <string_view>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  apollo
namespace  apollo::input

Functions

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.
std::unique_ptr< Backend > apollo::input::create_backend (BackendKind kind=BackendKind::automatic)
 Create a backend for the current platform.

Detailed Description

Backend selection, compatibility fallback, and name helpers.

Definition in file backend.cpp.