Pioneer
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions
InputBindings.cpp File Reference
#include "InputBindings.h"
#include "Input.h"
#include "SDL_events.h"
#include "SDL_joystick.h"
#include "utils.h"
#include <regex>
Include dependency graph for InputBindings.cpp:

Namespaces

namespace  Input
 

Macros

#define ret_if_different(val)    if (val != rhs.val) return val < rhs.val
 

Typedefs

using smatch = std::match_results< std::string_view::const_iterator >
 

Functions

int Input::JoystickFromGUIDString (const std::string &guid)
 
std::string Input::JoystickGUIDString (int joystick)
 
Response MatchType (const KeyBinding &k, const SDL_Event &ev)
 
bool consumeMatch (std::string_view &str, smatch &match_results, std::regex &reg)
 
std::string_view & findCloseParen (std::string_view &str, std::string_view &retstr, smatch &match_results)
 

Macro Definition Documentation

◆ ret_if_different

#define ret_if_different (   val)     if (val != rhs.val) return val < rhs.val

Typedef Documentation

◆ smatch

using smatch = std::match_results<std::string_view::const_iterator>

Function Documentation

◆ consumeMatch()

bool consumeMatch ( std::string_view &  str,
smatch match_results,
std::regex &  reg 
)

◆ findCloseParen()

std::string_view & findCloseParen ( std::string_view &  str,
std::string_view &  retstr,
smatch match_results 
)

◆ MatchType()

Response MatchType ( const KeyBinding k,
const SDL_Event &  ev 
)