openMSX
|
#include "Event.hh"
#include "JoystickId.hh"
#include "function_ref.hh"
#include "unreachable.hh"
#include <SDL.h>
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <variant>
Go to the source code of this file.
Classes | |
class | openmsx::BooleanKeyboard |
class | openmsx::BooleanMouseButton |
class | openmsx::BooleanJoystickButton |
class | openmsx::BooleanJoystickHat |
class | openmsx::BooleanJoystickAxis |
Namespaces | |
namespace | openmsx |
This file implemented 3 utility functions: | |
Typedefs | |
using | openmsx::BooleanInput = std::variant< BooleanKeyboard, BooleanMouseButton, BooleanJoystickButton, BooleanJoystickHat, BooleanJoystickAxis > |
Functions | |
constexpr std::string_view | openmsx::toString (BooleanJoystickHat::Direction dir) |
std::string | openmsx::toString (const BooleanInput &input) |
std::optional< BooleanInput > | openmsx::parseBooleanInput (std::string_view text) |
std::optional< BooleanInput > | openmsx::captureBooleanInput (const Event &event, function_ref< int(JoystickId)> getJoyDeadZone) |
bool | openmsx::operator== (const BooleanInput &x, const BooleanInput &y) |
std::optional< bool > | openmsx::match (const BooleanInput &binding, const Event &event, function_ref< int(JoystickId)> getJoyDeadZone) |