cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InputDelegate Class Reference

#include <CCInputDelegate.h>

Inheritance diagram for InputDelegate:
ComController

Public Member Functions

virtual bool isTouchEnabled () const
virtual void setTouchEnabled (bool value)
virtual bool isAccelerometerEnabled () const
virtual void setAccelerometerEnabled (bool value)
var setAccelerometerEnabled ( var value)
virtual bool isKeypadEnabled () const
virtual void setKeypadEnabled (bool value)
virtual void setTouchMode (cocos2d::Touch::DispatchMode mode)
virtual
cocos2d::Touch::DispatchMode 
getTouchMode () const
virtual void setTouchPriority (int priority)
var setTouchPriority ( var priority)
virtual int getTouchPriority () const
virtual void didAccelerate (cocos2d::Acceleration *accelerationValue) final
virtual bool ccTouchBegan (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual void ccTouchMoved (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual void ccTouchEnded (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual void ccTouchCancelled (cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final
virtual void ccTouchesBegan (cocos2d::__Set *pTouches, cocos2d::Event *pEvent) final
virtual void ccTouchesMoved (cocos2d::__Set *pTouches, cocos2d::Event *pEvent) final
virtual void ccTouchesEnded (cocos2d::__Set *pTouches, cocos2d::Event *pEvent) final
virtual void ccTouchesCancelled (cocos2d::__Set *pTouches, cocos2d::Event *pEvent) final
virtual void onAcceleration (cocos2d::Acceleration *acc, cocos2d::Event *event)
virtual void onKeyPressed (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event *event)
virtual void onKeyReleased (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event *event)
virtual bool onTouchBegan (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchMoved (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchEnded (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchCancelled (cocos2d::Touch *touch, cocos2d::Event *event)
virtual void onTouchesBegan (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesMoved (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesEnded (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void onTouchesCancelled (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)

Protected Member Functions

 InputDelegate (void)
virtual ~InputDelegate (void)

Protected Attributes

bool _touchEnabled
cocos2d::EventListener_touchListener
var _touchListener
bool _accelerometerEnabled
cocos2d::EventListener_accelerometerListener
var _accelerometerListener
bool _keypadEnabled
cocos2d::EventListener_keyboardListener

Constructor & Destructor Documentation

InputDelegate ( void  )
protected
var ctor (   )
protected
virtual ~InputDelegate ( void  )
protectedvirtual

Member Function Documentation

virtual bool ccTouchBegan ( cocos2d::Touch pTouch,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchCancelled ( cocos2d::Touch pTouch,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchEnded ( cocos2d::Touch pTouch,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchesBegan ( cocos2d::__Set pTouches,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchesCancelled ( cocos2d::__Set pTouches,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchesEnded ( cocos2d::__Set pTouches,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchesMoved ( cocos2d::__Set pTouches,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void ccTouchMoved ( cocos2d::Touch pTouch,
cocos2d::Event pEvent 
)
inlinefinalvirtual
virtual void didAccelerate ( cocos2d::Acceleration accelerationValue)
inlinefinalvirtual
Deprecated:
Please override onAcceleration
virtual
cocos2d::Touch::DispatchMode
getTouchMode
( ) const
virtual
var getTouchMode ( )
virtual
virtual int getTouchPriority ( ) const
virtual
var getTouchPriority ( )
virtual
virtual bool isAccelerometerEnabled ( ) const
virtual
var isAccelerometerEnabled ( )
virtual
virtual bool isKeypadEnabled ( ) const
virtual
var isKeypadEnabled ( )
virtual
virtual bool isTouchEnabled ( ) const
virtual
var isTouchEnabled ( )
virtual
virtual void onAcceleration ( cocos2d::Acceleration acc,
cocos2d::Event event 
)
inlinevirtual
virtual void onKeyPressed ( cocos2d::EventKeyboard::KeyCode  keyCode,
cocos2d::Event event 
)
inlinevirtual
virtual void onKeyReleased ( cocos2d::EventKeyboard::KeyCode  keyCode,
cocos2d::Event event 
)
inlinevirtual
virtual bool onTouchBegan ( cocos2d::Touch touch,
cocos2d::Event event 
)
virtual
virtual void onTouchCancelled ( cocos2d::Touch touch,
cocos2d::Event event 
)
virtual
virtual void onTouchEnded ( cocos2d::Touch touch,
cocos2d::Event event 
)
virtual
virtual void onTouchesBegan ( const std::vector< cocos2d::Touch * > &  touches,
cocos2d::Event event 
)
virtual
virtual void onTouchesCancelled ( const std::vector< cocos2d::Touch * > &  touches,
cocos2d::Event event 
)
virtual
virtual void onTouchesEnded ( const std::vector< cocos2d::Touch * > &  touches,
cocos2d::Event event 
)
virtual
virtual void onTouchesMoved ( const std::vector< cocos2d::Touch * > &  touches,
cocos2d::Event event 
)
virtual
virtual void onTouchMoved ( cocos2d::Touch touch,
cocos2d::Event event 
)
virtual
virtual void
setAccelerometerEnabled
( bool  value)
virtual
var setAccelerometerEnabled ( var  value)
virtual
virtual void setKeypadEnabled ( bool  value)
virtual
var setKeypadEnabled ( var  value)
virtual
virtual void setTouchEnabled ( bool  value)
virtual
var setTouchEnabled ( var  value)
virtual
virtual void setTouchMode ( cocos2d::Touch::DispatchMode  mode)
virtual
var setTouchMode ( var  mode)
virtual
virtual void setTouchPriority ( int  priority)
virtual
var setTouchPriority ( var  priority)
virtual

Member Data Documentation

bool _accelerometerEnabled
protected
var _accelerometerEnabled
protected
cocos2d::EventListener*
_accelerometerListener
protected
var _accelerometerListener
protected
cocos2d::EventListener*
_keyboardListener
protected
var _keyboardListener
protected
bool _keypadEnabled
protected
var _keypadEnabled
protected
bool _touchEnabled
protected
var _touchEnabled
protected
cocos2d::EventListener*
_touchListener
protected
var _touchListener
protected

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