matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
Represents the state of the key in a given frame. More...
#include <Input.hpp>
Public Types | |
enum class | State { Released , JustPressed , Pressed , JustReleased } |
The state of the key with regard to whether it is pressed or not. More... | |
Public Member Functions | |
State & | state () |
KeyId | id () const |
std::string_view | name () |
State | state () const |
std::string_view | state_str () const |
bool | is_down () const |
Shorthand method for checking whether the key is down. | |
bool | is_up () const |
Shorthand method for checking whether the key is up. | |
Private Attributes | |
KeyId | m_key = KEY_COUNT |
State | m_state = State::Released |
Friends | |
class | PlatformController |
Represents the state of the key in a given frame.
|
strong |
The state of the key with regard to whether it is pressed or not.
|
inline |
|
inline |
std::string_view engine::platform::Key::name | ( | ) |
|
inline |
std::string_view engine::platform::Key::state_str | ( | ) | const |
|
inline |
Shorthand method for checking whether the key is down.
|
inline |
Shorthand method for checking whether the key is up.
|
friend |
|
private |