|
| std::expected< void, Subsystem::Error > | initialize () override |
| |
| std::expected< void, Subsystem::Error > | terminate () override |
| |
| std::string | name () override |
| |
| bool | is_initialized () override |
| |
Definition at line 27 of file input.hpp.
◆ KeyboardCallback
| using brenta::Input::KeyboardCallback = std::function<void()> |
◆ MouseCallback
| using brenta::Input::MouseCallback = std::function<void(double, double)> |
◆ MouseCallbackId
| using brenta::Input::MouseCallbackId = std::string |
◆ add_keyboard_callback()
| void Input::add_keyboard_callback |
( |
Key |
key, |
|
|
KeyboardCallback |
callback |
|
) |
| |
|
static |
◆ add_mouse_callback()
| void Input::add_mouse_callback |
( |
MouseCallbackId |
name, |
|
|
MouseCallback |
callback |
|
) |
| |
|
static |
◆ initialize()
| std::expected< void, Subsystem::Error > Input::initialize |
( |
| ) |
|
|
overridevirtual |
◆ instance()
| Input & Input::instance |
( |
| ) |
|
|
static |
◆ is_initialized()
| bool Input::is_initialized |
( |
| ) |
|
|
overridevirtual |
◆ key_callback()
| void Input::key_callback |
( |
Key |
key, |
|
|
KeyAction |
action, |
|
|
KeyMods |
mods |
|
) |
| |
|
static |
◆ mouse_callback()
| void Input::mouse_callback |
( |
double |
xpos, |
|
|
double |
ypos |
|
) |
| |
|
static |
◆ name()
| std::string Input::name |
( |
| ) |
|
|
overridevirtual |
◆ remove_keyboard_callback()
| void Input::remove_keyboard_callback |
( |
Key |
key | ) |
|
|
static |
◆ remove_mouse_callback()
| void Input::remove_mouse_callback |
( |
MouseCallbackId |
name | ) |
|
|
static |
◆ terminate()
| std::expected< void, Subsystem::Error > Input::terminate |
( |
| ) |
|
|
overridevirtual |
◆ initialized
| bool Input::initialized = false |
|
staticprotected |
◆ keyboard_callbacks
| std::unordered_map< brenta::Key, Input::KeyboardCallback > Input::keyboard_callbacks |
|
staticprotected |
◆ mouse_callbacks
| std::unordered_map< Input::MouseCallbackId, Input::MouseCallback > Input::mouse_callbacks |
|
staticprotected |
◆ subsystem_name
| const std::string Input::subsystem_name = "input" |
|
static |
The documentation for this class was generated from the following files: