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 ()=default
 
virtual ~C4KeyboardCallbackInterface ()=default
 
bool IsOriginalKey (const class C4CustomKey *pCheckKey) const
 

Public Attributes

class C4CustomKeypOriginalKey {nullptr}
 

Friends

class C4KeyboardMapping
 

Detailed Description

Definition at line 268 of file C4KeyboardInput.h.

Constructor & Destructor Documentation

C4KeyboardCallbackInterface::C4KeyboardCallbackInterface ( )
default
virtual C4KeyboardCallbackInterface::~C4KeyboardCallbackInterface ( )
virtualdefault

Member Function Documentation

void C4KeyboardCallbackInterface::Deref ( )
inline

Definition at line 282 of file C4KeyboardInput.h.

Referenced by C4CustomKey::KillCallbacks().

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

Here is the caller graph for this function:

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

Definition at line 287 of file C4KeyboardInput.h.

References pOriginalKey.

Referenced by C4KeyboardCallbackInterfaceHasOriginalKey().

287 { 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 281 of file C4KeyboardInput.h.

Referenced by C4CustomKey::C4CustomKey().

281 { ++iRef; }

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4KeyboardMapping
friend

Definition at line 278 of file C4KeyboardInput.h.

Member Data Documentation

class C4CustomKey* C4KeyboardCallbackInterface::pOriginalKey {nullptr}

Definition at line 273 of file C4KeyboardInput.h.

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


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