cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCKeyboardDispatcher Class Reference

#include <CCKeyboardDispatcher.h>

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

Public Member Functions

 CCKeyboardDispatcher ()
 
 CCKeyboardDispatcher (const CCKeyboardDispatcher &)
 
virtual ~CCKeyboardDispatcher ()
 
CCKeyboardDispatcheroperator= (const CCKeyboardDispatcher &)
 
void addDelegate (CCKeyboardDelegate *pDelegate)
 
void removeDelegate (CCKeyboardDelegate *pDelegate)
 
void forceAddDelegate (CCKeyboardDelegate *pDelegate)
 
void forceRemoveDelegate (CCKeyboardDelegate *pDelegate)
 
enumKeyCodes convertKeyCode (enumKeyCodes key)
 
bool dispatchKeyboardMSG (enumKeyCodes key, bool)
 
bool getAltKeyPressed () const
 
bool getCommandKeyPressed () const
 
bool getControlKeyPressed () const
 
bool getShiftKeyPressed () const
 
const char * keyToString (enumKeyCodes key)
 
void updateModifierKeys (bool shft, bool ctrl, bool alt, bool cmd)
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 NA. More...
 
void release (void)
 
void retain (void)
 
CCObjectautorelease (void)
 
CCObjectcopy (void)
 
bool isSingleReference (void) const
 
unsigned int retainCount (void) const
 
virtual bool isEqual (const CCObject *pObject)
 
virtual void acceptVisitor (CCDataVisitor &visitor)
 
virtual void update (float dt)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)
 

Protected Attributes

CCArraym_pDelegates
 
bool m_bUnknown24
 
bool m_bUnknown25
 
char m_achPadding [2]
 
ccCArray * m_pUnknown28
 
ccCArray * m_pUnknown2c
 
bool m_bShiftPressed
 
bool m_bControlPressed
 
bool m_bAltPressed
 
bool m_bCommandPressed
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
 
unsigned int m_uAutoReleaseCount
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

Additional Inherited Members

- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 
- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 

Constructor & Destructor Documentation

◆ CCKeyboardDispatcher() [1/2]

◆ CCKeyboardDispatcher() [2/2]

◆ ~CCKeyboardDispatcher()

virtual ~CCKeyboardDispatcher ( )
virtual

Member Function Documentation

◆ addDelegate()

void addDelegate ( CCKeyboardDelegate pDelegate)

◆ convertKeyCode()

enumKeyCodes convertKeyCode ( enumKeyCodes  key)

◆ dispatchKeyboardMSG()

bool dispatchKeyboardMSG ( enumKeyCodes  key,
bool   
)

◆ forceAddDelegate()

void forceAddDelegate ( CCKeyboardDelegate pDelegate)

◆ forceRemoveDelegate()

void forceRemoveDelegate ( CCKeyboardDelegate pDelegate)

◆ getAltKeyPressed()

bool getAltKeyPressed ( ) const

◆ getCommandKeyPressed()

bool getCommandKeyPressed ( ) const

◆ getControlKeyPressed()

bool getControlKeyPressed ( ) const

◆ getShiftKeyPressed()

bool getShiftKeyPressed ( ) const

◆ keyToString()

const char * keyToString ( enumKeyCodes  key)

◆ operator=()

CCKeyboardDispatcher & operator= ( const CCKeyboardDispatcher )

◆ removeDelegate()

void removeDelegate ( CCKeyboardDelegate pDelegate)

◆ updateModifierKeys()

void updateModifierKeys ( bool  shft,
bool  ctrl,
bool  alt,
bool  cmd 
)

Member Data Documentation

◆ m_achPadding

char m_achPadding[ 2]
protected
Warning
This field is unknown and may contain data of any type. Do not use.

◆ m_bAltPressed

bool m_bAltPressed
protected

◆ m_bCommandPressed

bool m_bCommandPressed
protected

◆ m_bControlPressed

bool m_bControlPressed
protected

◆ m_bShiftPressed

bool m_bShiftPressed
protected

◆ m_bUnknown24

bool m_bUnknown24
protected

◆ m_bUnknown25

bool m_bUnknown25
protected

◆ m_pDelegates

CCArray* m_pDelegates
protected

◆ m_pUnknown28

ccCArray* m_pUnknown28
protected

◆ m_pUnknown2c

ccCArray* m_pUnknown2c
protected

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