Blender V4.3
GHOST_EventPrinter Class Reference

#include <GHOST_EventPrinter.hh>

Inherits GHOST_IEventConsumer.

Public Member Functions

bool processEvent (const GHOST_IEvent *event)
 
- Public Member Functions inherited from GHOST_IEventConsumer
virtual ~GHOST_IEventConsumer ()
 

Protected Member Functions

const char * getKeyString (GHOST_TKey key) const
 

Detailed Description

An Event consumer that prints all the events to standard out. Really useful when debugging.

Definition at line 18 of file GHOST_EventPrinter.hh.

Member Function Documentation

◆ getKeyString()

const char * GHOST_EventPrinter::getKeyString ( GHOST_TKey key) const
protected

Converts GHOST key code to a readable string.

Parameters
keyThe GHOST key code to convert.
strThe GHOST key code converted to a readable string.

Definition at line 224 of file GHOST_EventPrinter.cc.

References CASE_KEY, GHOST_kKey0, GHOST_kKey1, GHOST_kKey2, GHOST_kKey3, GHOST_kKey4, GHOST_kKey5, GHOST_kKey6, GHOST_kKey7, GHOST_kKey8, GHOST_kKey9, GHOST_kKeyA, GHOST_kKeyAccentGrave, GHOST_kKeyApp, GHOST_kKeyB, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyC, GHOST_kKeyCapsLock, GHOST_kKeyClear, GHOST_kKeyComma, GHOST_kKeyD, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyE, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF, GHOST_kKeyF1, GHOST_kKeyF10, GHOST_kKeyF11, GHOST_kKeyF12, GHOST_kKeyF13, GHOST_kKeyF14, GHOST_kKeyF15, GHOST_kKeyF16, GHOST_kKeyF17, GHOST_kKeyF18, GHOST_kKeyF19, GHOST_kKeyF2, GHOST_kKeyF20, GHOST_kKeyF21, GHOST_kKeyF22, GHOST_kKeyF23, GHOST_kKeyF24, GHOST_kKeyF3, GHOST_kKeyF4, GHOST_kKeyF5, GHOST_kKeyF6, GHOST_kKeyF7, GHOST_kKeyF8, GHOST_kKeyF9, GHOST_kKeyG, GHOST_kKeyGrLess, GHOST_kKeyH, GHOST_kKeyHome, GHOST_kKeyI, GHOST_kKeyInsert, GHOST_kKeyJ, GHOST_kKeyK, GHOST_kKeyL, GHOST_kKeyLeftAlt, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyLeftControl, GHOST_kKeyLeftOS, GHOST_kKeyLeftShift, GHOST_kKeyLinefeed, GHOST_kKeyM, GHOST_kKeyMediaFirst, GHOST_kKeyMediaLast, GHOST_kKeyMediaPlay, GHOST_kKeyMediaStop, GHOST_kKeyMinus, GHOST_kKeyN, GHOST_kKeyNumLock, GHOST_kKeyNumpad0, GHOST_kKeyNumpad1, GHOST_kKeyNumpad2, GHOST_kKeyNumpad3, GHOST_kKeyNumpad4, GHOST_kKeyNumpad5, GHOST_kKeyNumpad6, GHOST_kKeyNumpad7, GHOST_kKeyNumpad8, GHOST_kKeyNumpad9, GHOST_kKeyNumpadAsterisk, GHOST_kKeyNumpadEnter, GHOST_kKeyNumpadMinus, GHOST_kKeyNumpadPeriod, GHOST_kKeyNumpadPlus, GHOST_kKeyNumpadSlash, GHOST_kKeyO, GHOST_kKeyP, GHOST_kKeyPause, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyPrintScreen, GHOST_kKeyQ, GHOST_kKeyQuote, GHOST_kKeyR, GHOST_kKeyRightAlt, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeyRightControl, GHOST_kKeyRightOS, GHOST_kKeyRightShift, GHOST_kKeyS, GHOST_kKeyScrollLock, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyT, GHOST_kKeyTab, GHOST_kKeyU, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, GHOST_kKeyV, GHOST_kKeyW, GHOST_kKeyX, GHOST_kKeyY, and GHOST_kKeyZ.

Referenced by processEvent().

◆ processEvent()


The documentation for this class was generated from the following files: