OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4KeyboardCallbackInterface Class Referenceabstract

#include <C4KeyboardInput.h>

Inheritance diagram for C4KeyboardCallbackInterface:
[legend]
Collaboration diagram for C4KeyboardCallbackInterface:
[legend]

Public Member Functions

virtual bool OnKeyEvent (const C4KeyCodeEx &key, C4KeyEventType eEv)=0
 
void Ref ()
 
void Deref ()
 
 C4KeyboardCallbackInterface ()
 
virtual ~C4KeyboardCallbackInterface ()
 
bool IsOriginalKey (const class C4CustomKey *pCheckKey) const
 

Public Attributes

class C4CustomKeypOriginalKey
 

Friends

class C4KeyboardMapping
 

Detailed Description

Definition at line 275 of file C4KeyboardInput.h.

Constructor & Destructor Documentation

C4KeyboardCallbackInterface::C4KeyboardCallbackInterface ( )
inline

Definition at line 291 of file C4KeyboardInput.h.

291 : iRef(0), pOriginalKey(nullptr) {}
class C4CustomKey * pOriginalKey
virtual C4KeyboardCallbackInterface::~C4KeyboardCallbackInterface ( )
inlinevirtual

Definition at line 292 of file C4KeyboardInput.h.

292 {}

Member Function Documentation

void C4KeyboardCallbackInterface::Deref ( )
inline

Definition at line 289 of file C4KeyboardInput.h.

Referenced by C4CustomKey::KillCallbacks().

289 { if (!--iRef) delete this; }

Here is the caller graph for this function:

bool C4KeyboardCallbackInterface::IsOriginalKey ( const class C4CustomKey pCheckKey) const
inline

Definition at line 294 of file C4KeyboardInput.h.

References pOriginalKey.

Referenced by C4KeyboardCallbackInterfaceHasOriginalKey().

294 { return pCheckKey == pOriginalKey; }
class C4CustomKey * pOriginalKey

Here is the caller graph for this function:

virtual bool C4KeyboardCallbackInterface::OnKeyEvent ( const C4KeyCodeEx key,
C4KeyEventType  eEv 
)
pure virtual
void C4KeyboardCallbackInterface::Ref ( )
inline

Definition at line 288 of file C4KeyboardInput.h.

Referenced by C4CustomKey::C4CustomKey().

288 { ++iRef; }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4KeyboardMapping
friend

Definition at line 285 of file C4KeyboardInput.h.

Member Data Documentation

class C4CustomKey* C4KeyboardCallbackInterface::pOriginalKey

Definition at line 280 of file C4KeyboardInput.h.

Referenced by C4CustomKey::C4CustomKey(), and IsOriginalKey().


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