QcGamepadNames Namespace
The names of buttons, axes and types in the control interface and in settings ("south", "leftX", "playstation"); the lookups return nullopt for an unknown name. More...
| Header: | #include <clientcore/input/QcGamepadState.h> |
Functions
| QString | axis(QcGamepadAxis axis) |
| std::optional<QcGamepadAxis> | axisFromName(const QString &name) |
| QString | button(QcGamepadButton button) |
| std::optional<QcGamepadButton> | buttonFromName(const QString &name) |
| QString | type(QcGamepadType type) |
| std::optional<QcGamepadType> | typeFromName(const QString &name) |
Detailed Description
Function Documentation
QString QcGamepadNames::axis(QcGamepadAxis axis)
Returns the name of axis.
std::optional<QcGamepadAxis> QcGamepadNames::axisFromName(const QString &name)
Returns the axis named name.
QString QcGamepadNames::button(QcGamepadButton button)
Returns the name of button.
std::optional<QcGamepadButton> QcGamepadNames::buttonFromName(const QString &name)
Returns the button named name.
QString QcGamepadNames::type(QcGamepadType type)
Returns the name of type.
std::optional<QcGamepadType> QcGamepadNames::typeFromName(const QString &name)
Returns the pad type named name.