OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
GameTraceHandler Class Reference

#include <GameTraceHandler.h>

Inheritance diagram for GameTraceHandler:
PlatformEventFilter PlatformApplicationAware

Public Member Functions

 GameTraceHandler ()
 
virtual ~GameTraceHandler ()=default
 
virtual bool keyPressEvent (const PlatformKeyEvent *event) override
 
virtual bool keyReleaseEvent (const PlatformKeyEvent *event) override
 

Private Member Functions

bool isTriggerKey (const PlatformKeyEvent *event) const
 
bool isTriggerKeySequence (const PlatformKeyEvent *event) const
 
- Private Member Functions inherited from PlatformEventFilter
 PlatformEventFilter (std::initializer_list< PlatformEventType > eventTypes)
 
 PlatformEventFilter (PlatformEventWildcard eventTypes)
 
virtual bool event (const PlatformEvent *event)
 
const std::vector< PlatformEventTypeeventTypes () const
 
virtual bool keyPressEvent (const PlatformKeyEvent *event)
 
virtual bool keyReleaseEvent (const PlatformKeyEvent *event)
 
virtual bool mouseMoveEvent (const PlatformMouseEvent *event)
 
virtual bool mousePressEvent (const PlatformMouseEvent *event)
 
virtual bool mouseReleaseEvent (const PlatformMouseEvent *event)
 
virtual bool wheelEvent (const PlatformWheelEvent *event)
 
virtual bool moveEvent (const PlatformMoveEvent *event)
 
virtual bool resizeEvent (const PlatformResizeEvent *event)
 
virtual bool activationEvent (const PlatformWindowEvent *event)
 
virtual bool closeEvent (const PlatformWindowEvent *event)
 
virtual bool gamepadConnectionEvent (const PlatformGamepadEvent *event)
 
virtual bool gamepadKeyPressEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadKeyReleaseEvent (const PlatformGamepadKeyEvent *event)
 
virtual bool gamepadAxisEvent (const PlatformGamepadAxisEvent *event)
 
virtual bool nativeEvent (const PlatformNativeEvent *event)
 
virtual bool textInputEvent (const PlatformTextInputEvent *event)
 
- Private Member Functions inherited from PlatformApplicationAware
 ~PlatformApplicationAware ()=default
 
PlatformApplicationapplication () const
 
template<class T >
T * component () const
 
virtual void installNotify ()
 
virtual void removeNotify ()
 

Private Attributes

bool _waitingForKeyRelease = false
 

Friends

class PlatformIntrospection
 

Detailed Description

Event filter that reacts to start/stop recording hotkey and calls into event tracer to start/stop recording.

Note that this event filter should be installed last (or at least after the EventTracer), so that the start/stop keystrokes don't end up being recorded. Technically there's nothing wrong with recording them, but there's little point in doing so.

Constructor & Destructor Documentation

◆ GameTraceHandler()

GameTraceHandler::GameTraceHandler ( )

◆ ~GameTraceHandler()

virtual GameTraceHandler::~GameTraceHandler ( )
virtualdefault

Member Function Documentation

◆ isTriggerKey()

bool GameTraceHandler::isTriggerKey ( const PlatformKeyEvent event) const
private

◆ isTriggerKeySequence()

bool GameTraceHandler::isTriggerKeySequence ( const PlatformKeyEvent event) const
private

◆ keyPressEvent()

bool GameTraceHandler::keyPressEvent ( const PlatformKeyEvent event)
overridevirtual

Reimplemented from PlatformEventFilter.

◆ keyReleaseEvent()

bool GameTraceHandler::keyReleaseEvent ( const PlatformKeyEvent event)
overridevirtual

Reimplemented from PlatformEventFilter.

Friends And Related Function Documentation

◆ PlatformIntrospection

friend class PlatformIntrospection
friend

Member Data Documentation

◆ _waitingForKeyRelease

bool GameTraceHandler::_waitingForKeyRelease = false
private

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