Murl::IRawKeyboard Interface Referenceabstract

The raw-keyboard device interface. More...

#include "murl_i_raw_keyboard.h"

Inherited by Murl::Input::RawKeyboardDevice.

Public Types

enum  EventAction { EVENT_ACTION_NONE, EVENT_ACTION_KEY_DOWN, EVENT_ACTION_KEY_UP, EVENT_ACTION_FLUSH }
 Definition of event actions. More...
 

Public Member Functions

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

Detailed Description

The raw-keyboard 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_KEY_DOWN 

The key is pressed.

EVENT_ACTION_KEY_UP 

The key is released.

EVENT_ACTION_FLUSH 

Flush all key 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::IRawKeyboard::PostEvent ( EventAction  action,
RawKeyCode  code 
)
pure virtual

Post the current raw-key state.

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

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


Copyright © 2011-2018 Spraylight GmbH.