Handles keyboard input. Requires things to be set up with Ncurses and Termios.
More...
|
void | Update (void) |
| Update the state of the keyboard. More...
|
|
bool | GetKey (const int p_Key) |
| Get the key's current state. Note that unlike IsPressed(), this also stores the result for use in the next key state check. More...
|
|
bool | GetKeyDown (const int p_Key) |
| Was this key pressed since the last check? Note that unlike WasJustPressed(), this checks if the key was pressed since the last time a GetKey* function was called. More...
|
|
bool | GetKeyUp (const int p_Key) |
| Was this key released since the last check? Note that unlike WasJustReleased(), this checks if the key was released since the last time a GetKey* function was called. More...
|
|
|
bool | IsPressed (const int p_Key) const |
| Get the key's current state. Note that unlike GetKey(), this does not store the result for use in the next key state check. More...
|
|
bool | WasJustPressed (const int p_Key) const |
| Was this key pressed since the last input update? Note that unlike GetKeyDown(), this function will return the same value until the next keyboard state update. More...
|
|
bool | WasJustReleased (const int p_Key) const |
| Was this key released since the last input update? Note that unlike GetKeyUp(), this function will return the same value until the next keyboard state update. More...
|
|
bool | WasPressedLastUpdate (const int p_Key) const |
| Was this key pressed the previous input update? More...
|
|
Handles keyboard input. Requires things to be set up with Ncurses and Termios.
Definition at line 228 of file ClientPlatformSpecific.cpp.
◆ InputMap_t
◆ GetKey()
bool GetKey |
( |
const int |
p_Key | ) |
|
|
inline |
◆ GetKeyDown()
bool GetKeyDown |
( |
const int |
p_Key | ) |
|
|
inline |
◆ GetKeyUp()
bool GetKeyUp |
( |
const int |
p_Key | ) |
|
|
inline |
◆ IsPressed()
bool IsPressed |
( |
const int |
p_Key | ) |
const |
|
inlineprivate |
◆ Update()
◆ WasJustPressed()
bool WasJustPressed |
( |
const int |
p_Key | ) |
const |
|
inlineprivate |
Was this key pressed since the last input update? Note that unlike GetKeyDown(), this function will return the same value until the next keyboard state update.
Definition at line 345 of file ClientPlatformSpecific.cpp.
◆ WasJustReleased()
bool WasJustReleased |
( |
const int |
p_Key | ) |
const |
|
inlineprivate |
Was this key released since the last input update? Note that unlike GetKeyUp(), this function will return the same value until the next keyboard state update.
Definition at line 353 of file ClientPlatformSpecific.cpp.
◆ WasPressedLastUpdate()
bool WasPressedLastUpdate |
( |
const int |
p_Key | ) |
const |
|
inlineprivate |
◆ m_CurrentlyPressed
◆ m_PressedLastUpdate
◆ m_PreviousKeyState
The documentation for this class was generated from the following file: