Skip to content

Class ClientInput

ClassList > ClientInput

Handles keyboard input. Requires things to be set up with Ncurses and Termios.

Public Functions

Type Name
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.
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.
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.
void Update (void)
Update the state of the keyboard.

Public Functions Documentation

function GetKey

inline bool ClientInput::GetKey (
    const int p_Key
) 

function GetKeyDown

inline bool ClientInput::GetKeyDown (
    const int p_Key
) 

function GetKeyUp

inline bool ClientInput::GetKeyUp (
    const int p_Key
) 

function Update

inline void ClientInput::Update (
    void
) 

The documentation for this class was generated from the following file api/cppSDK/SDKClient/PlatformSpecific/Linux/ClientPlatformSpecific.cpp