Murl::Input::IRawKeyboardDevice Interface Referenceabstract
The IRawKeyboardDevice interface. More...
#include "murl_input_i_raw_keyboard_device.h"
Inheritance diagram for Murl::Input::IRawKeyboardDevice:
Public Member Functions | |
virtual Bool | IsKeyPressed (RawKeyCode code) const =0 |
Check if a specified raw-key is pressed. More... | |
virtual Bool | WasKeyPressed (RawKeyCode code) const =0 |
Check if a specified raw-key was pressed in the most recent tick. More... | |
virtual Bool | WasKeyReleased (RawKeyCode code) const =0 |
Check if a specified raw-key was released in the most recent tick. More... | |
Public Member Functions inherited from Murl::Input::IDevice | |
virtual const String & | GetName () const =0 |
Get the device name. More... | |
virtual UInt32 | GetId () const =0 |
Get the unique device identifier. More... | |
virtual Bool | HasUpdate () const =0 |
Check if the device has received new data since the last Update(). More... | |
virtual void | LogicUpdate ()=0 |
Is executed in the logic thread context each logic tick. | |
virtual void | ConfigChanged (const IAppConfiguration *appConfig)=0 |
Notification of changed configuration. More... | |
Detailed Description
The IRawKeyboardDevice interface.
Member Function Documentation
◆ IsKeyPressed()
|
pure virtual |
Check if a specified raw-key is pressed.
- Parameters
-
code The raw-key identifier.
- Returns
- true if the key is pressed.
◆ WasKeyPressed()
|
pure virtual |
Check if a specified raw-key was pressed in the most recent tick.
- Parameters
-
code The raw-key identifier.
- Returns
- true if the key was pressed in the most recent tick.
◆ WasKeyReleased()
|
pure virtual |
Check if a specified raw-key was released in the most recent tick.
- Parameters
-
code The raw-key identifier.
- Returns
- true if the key was released in the most recent tick.
The documentation for this interface was generated from the following file:
- murl_input_i_raw_keyboard_device.h