openMSX
Classes | Namespaces | Typedefs | Functions
BooleanInput.hh File Reference
#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>
Include dependency graph for BooleanInput.hh:
This graph shows which files directly or indirectly include this file:

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< BooleanInputopenmsx::parseBooleanInput (std::string_view text)
 
std::optional< BooleanInputopenmsx::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)