nngn
Loading...
Searching...
No Matches
input_test.cpp File Reference
#include "input_test.h"
#include <sstream>
#include <string_view>
#include "input/group.h"
#include "input/input.h"
#include "lua/state.h"
#include "tests/tests.h"
Include dependency graph for input_test.cpp:

Namespaces

namespace  anonymous_namespace{input_test.cpp}
 

Functions

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

Variables

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