Structure f3d::interaction_bind_t
Definition: interactor.h
(line 20)
Members
Public types
Enumeration type ModifierKeys
Definition: interactor.h
(line 25)
enum ModifierKeys {
ANY = 0x80,
NONE = 0x0,
CTRL = 0x1,
SHIFT = 0x2,
CTRL_SHIFT = 0x3
}
Enumeration of supported modifier combination, in binary.
Enumerator ANY
Enumerator NONE
Enumerator CTRL
Enumerator SHIFT
Enumerator CTRL_SHIFT
Public attributes
Variable mod
Definition: interactor.h
(line 34)
ModifierKeys f3d::interaction_bind_t::mod = ModifierKeys::NONE
Type: ModifierKeys
Variable inter
Definition: interactor.h
(line 35)
std::string f3d::interaction_bind_t::inter
Type: std::string
Public functions
Function operator<
bool f3d::interaction_bind_t::operator<(const interaction_bind_t &bind) const
Operator to be able to store binds in maps and other structs Compare modifier and interaction
Parameters:
- const interaction_bind_t & bind
Return type: bool
Function operator==
bool f3d::interaction_bind_t::operator==(const interaction_bind_t &bind) const
Operator to be able to store binds in maps and other structs Compare modifier and interaction
Parameters:
- const interaction_bind_t & bind
Return type: bool
Function format
std::string f3d::interaction_bind_t::format() const
Format this binding into a string eg: "A", "Any+Question", "Shift+L".
Return type: std::string
Public static functions
Function parse
interaction_bind_t f3d::interaction_bind_t::parse(std::string_view str)
Create and return an interaction bind from provided string
Parameters:
- std::string_view str
Return type: interaction_bind_t