Murl::IRawButton Interface Referenceabstract

The raw-button device interface. More...

#include "murl_i_raw_button.h"

Inherited by Murl::Input::RawButtonDevice.

Public Types

enum  EventAction { EVENT_ACTION_NONE , EVENT_ACTION_BUTTON_DOWN , EVENT_ACTION_BUTTON_UP , EVENT_ACTION_FLUSH , NUM_EVENT_ACTIONS }
 Definition of event actions. More...
 

Public Member Functions

virtual void PostEvent (EventAction action, RawButtonCode code)=0
 Post the current raw-button state. More...
 

Detailed Description

The raw-button device interface.

Used by the platform to post events to the device.

Member Enumeration Documentation

◆ EventAction

Definition of event actions.

Enumerator
EVENT_ACTION_NONE 

No action.

EVENT_ACTION_BUTTON_DOWN 

The button is pressed.

EVENT_ACTION_BUTTON_UP 

The button is released.

EVENT_ACTION_FLUSH 

Flush all button states to the up state.

This is useful in rare cases, e.g. if the platform is loosing events when changing from window to full screen mode.

Member Function Documentation

◆ PostEvent()

virtual void Murl::IRawButton::PostEvent ( EventAction  action,
RawButtonCode  code 
)
pure virtual

Post the current raw-button state.

Parameters
actionThe event action, see enum EventAction.
codeThe raw-button code.

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


Copyright © 2011-2024 Spraylight GmbH.