nngn
Loading...
Searching...
No Matches
anonymous_namespace{input_test.cpp} Namespace Reference

Functions

void register_callback (lua_State *L, Input *i, const char *f)
 
void register_callback (lua_State *L, BindingGroup *g, int key, Input::Selector s)
 
QString result_str (int key, bool press, int mods)
 
QString result_str (lua_State *L)
 

Variables

constexpr int KEY = 1
 
constexpr auto * TEST_FUNC = "return function(...) key, press, mods = ... end"
 
constexpr auto PRESS = Input::Selector::PRESS
 
constexpr auto CTRL = Input::Selector::CTRL
 
constexpr auto ALT = Input::Selector::ALT
 
constexpr auto PRESS_CTRL = static_cast<Input::Selector>(PRESS | CTRL)
 
constexpr auto PRESS_ALT = static_cast<Input::Selector>(PRESS | ALT)
 
constexpr auto CTRL_ALT = static_cast<Input::Selector>(CTRL | ALT)
 
constexpr auto PRESS_CTRL_ALT
 
const QString not_called = result_str(0, 0, 0)
 

Function Documentation

◆ register_callback() [1/2]

void anonymous_namespace{input_test.cpp}::register_callback ( lua_State * L,
BindingGroup * g,
int key,
Input::Selector s )

◆ register_callback() [2/2]

void anonymous_namespace{input_test.cpp}::register_callback ( lua_State * L,
Input * i,
const char * f )
Here is the call graph for this function:

◆ result_str() [1/2]

QString anonymous_namespace{input_test.cpp}::result_str ( int key,
bool press,
int mods )
Here is the caller graph for this function:

◆ result_str() [2/2]

QString anonymous_namespace{input_test.cpp}::result_str ( lua_State * L)
Here is the call graph for this function:

Variable Documentation

◆ ALT

auto anonymous_namespace{input_test.cpp}::ALT = Input::Selector::ALT
constexpr

◆ CTRL

auto anonymous_namespace{input_test.cpp}::CTRL = Input::Selector::CTRL
constexpr

◆ CTRL_ALT

auto anonymous_namespace{input_test.cpp}::CTRL_ALT = static_cast<Input::Selector>(CTRL | ALT)
constexpr

◆ KEY

int anonymous_namespace{input_test.cpp}::KEY = 1
constexpr

◆ not_called

const QString anonymous_namespace{input_test.cpp}::not_called = result_str(0, 0, 0)

◆ PRESS

auto anonymous_namespace{input_test.cpp}::PRESS = Input::Selector::PRESS
constexpr

◆ PRESS_ALT

auto anonymous_namespace{input_test.cpp}::PRESS_ALT = static_cast<Input::Selector>(PRESS | ALT)
constexpr

◆ PRESS_CTRL

auto anonymous_namespace{input_test.cpp}::PRESS_CTRL = static_cast<Input::Selector>(PRESS | CTRL)
constexpr

◆ PRESS_CTRL_ALT

auto anonymous_namespace{input_test.cpp}::PRESS_CTRL_ALT
constexpr
Initial value:
=
static_cast<Input::Selector>(PRESS | CTRL | ALT)
constexpr auto PRESS
Definition input_test.cpp:26
constexpr auto ALT
Definition input_test.cpp:28
constexpr auto CTRL
Definition input_test.cpp:27

◆ TEST_FUNC

auto* anonymous_namespace{input_test.cpp}::TEST_FUNC = "return function(...) key, press, mods = ... end"
constexpr