Murl::Input::IRawButtonDevice Interface Referenceabstract

The IRawButtonDevice interface. More...

#include "murl_input_i_raw_button_device.h"

Inheritance diagram for Murl::Input::IRawButtonDevice:

Public Member Functions

virtual Bool IsButtonPressed (RawButtonCode code) const =0
 Check if a specified raw-button is pressed. More...
 
virtual Bool WasButtonPressed (RawButtonCode code) const =0
 Check if a specified raw-button was pressed in the most recent tick. More...
 
virtual Bool WasButtonReleased (RawButtonCode code) const =0
 Check if a specified raw-button was released in the most recent tick. More...
 
- Public Member Functions inherited from Murl::Input::IDevice
virtual const StringGetName () 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 IRawButtonDevice interface.

Member Function Documentation

◆ IsButtonPressed()

virtual Bool Murl::Input::IRawButtonDevice::IsButtonPressed ( RawButtonCode  code) const
pure virtual

Check if a specified raw-button is pressed.

Parameters
codeThe raw-button identifier.
Returns
true if the button is pressed.

◆ WasButtonPressed()

virtual Bool Murl::Input::IRawButtonDevice::WasButtonPressed ( RawButtonCode  code) const
pure virtual

Check if a specified raw-button was pressed in the most recent tick.

Parameters
codeThe raw-button identifier.
Returns
true if the button was pressed in the most recent tick.

◆ WasButtonReleased()

virtual Bool Murl::Input::IRawButtonDevice::WasButtonReleased ( RawButtonCode  code) const
pure virtual

Check if a specified raw-button was released in the most recent tick.

Parameters
codeThe raw-button identifier.
Returns
true if the button was released in the most recent tick.

The documentation for this interface was generated from the following file:
  • murl_input_i_raw_button_device.h


Copyright © 2011-2018 Spraylight GmbH.