cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表

InputDelegate类 参考

NA 更多…

#include

类 InputDelegate 继承关系图:

Public 成员函数 - 图3 ComController

## Public 成员函数
virtual bool isTouchEnabled () const
virtual void setTouchEnabled (bool value)
virtual bool isAccelerometerEnabled () const
virtual void setAccelerometerEnabled (bool 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)
virtual int getTouchPriority () const
virtual CC_DEPRECATED_ATTRIBUTE void didAccelerate (cocos2d::Acceleration accelerationValue) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE bool ccTouchBegan (cocos2d::Touch pTouch, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchMoved (cocos2d::Touch pTouch, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchEnded (cocos2d::Touch pTouch, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchCancelled (cocos2d::Touch pTouch, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesBegan (cocos2d::__Set pTouches, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesMoved (cocos2d::__Set pTouches, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesEnded (cocos2d::__Set pTouches, cocos2d::Event pEvent) final
NA 更多…
virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesCancelled (cocos2d::__Set pTouches, cocos2d::Event pEvent) final
NA 更多…
virtual void onAcceleration (cocos2d::Acceleration acc, cocos2d::Event event)
NA 更多…
virtual void onKeyPressed (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event event)
NA 更多…
virtual void onKeyReleased (cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event event)
NA 更多…
virtual bool onTouchBegan (cocos2d::Touch touch, cocos2d::Event event)
NA 更多…
virtual void onTouchMoved (cocos2d::Touch touch, cocos2d::Event event)
NA 更多…
virtual void onTouchEnded (cocos2d::Touch touch, cocos2d::Event event)
NA 更多…
virtual void onTouchCancelled (cocos2d::Touch touch, cocos2d::Event event)
NA 更多…
virtual void onTouchesBegan (const std::vector< cocos2d::Touch > &touches, cocos2d::Event event)
NA 更多…
virtual void onTouchesMoved (const std::vector< cocos2d::Touch > &touches, cocos2d::Event event)
NA 更多…
virtual void onTouchesEnded (const std::vector< cocos2d::Touch > &touches, cocos2d::Event event)
NA 更多…
virtual void onTouchesCancelled (const std::vector< cocos2d::Touch > &touches, cocos2d::Event *event)
NA 更多…
## Protected 成员函数
InputDelegate (void)
ctor 更多…
virtual ~InputDelegate (void)
NA 更多…
## Protected 属性
bool _touchEnabled
cocos2d::EventListener _touchListener
bool _accelerometerEnabled
cocos2d::EventListener _accelerometerListener
bool _keypadEnabled
cocos2d::EventListener * _keyboardListener

详细描述

NA

构造及析构函数说明

InputDelegate ( void )

protected

ctor

virtual ~InputDelegate ( void )

protectedvirtual

NA

成员函数说明

virtual CC_DEPRECATED_ATTRIBUTE bool ccTouchBegan ( cocos2d::Touch pTouch,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchCancelled ( cocos2d::Touch pTouch,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchEnded ( cocos2d::Touch pTouch,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesBegan ( cocos2d::__Set pTouches,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesCancelled ( cocos2d::__Set pTouches,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesEnded ( cocos2d::__Set pTouches,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchesMoved ( cocos2d::__Set pTouches,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void ccTouchMoved ( cocos2d::Touch pTouch,
cocos2d::Event pEvent
)

inlinefinalvirtual

NA

virtual CC_DEPRECATED_ATTRIBUTE void didAccelerate ( cocos2d::Acceleration * accelerationValue)

inlinefinalvirtual

NA

virtual cocos2d::Touch::DispatchMode getTouchMode ( ) const

virtual

virtual int getTouchPriority ( ) const

virtual

virtual bool isAccelerometerEnabled ( ) const

virtual

virtual bool isKeypadEnabled ( ) const

virtual

virtual bool isTouchEnabled ( ) const

virtual

virtual void onAcceleration ( cocos2d::Acceleration acc,
cocos2d::Event event
)

inlinevirtual

NA

virtual void onKeyPressed ( cocos2d::EventKeyboard::KeyCode keyCode,
cocos2d::Event * event
)

inlinevirtual

NA

virtual void onKeyReleased ( cocos2d::EventKeyboard::KeyCode keyCode,
cocos2d::Event * event
)

inlinevirtual

NA

virtual bool onTouchBegan ( cocos2d::Touch touch,
cocos2d::Event event
)

virtual

NA

virtual void onTouchCancelled ( cocos2d::Touch touch,
cocos2d::Event event
)

virtual

NA

virtual void onTouchEnded ( cocos2d::Touch touch,
cocos2d::Event event
)

virtual

NA

virtual void onTouchesBegan ( const std::vector< cocos2d::Touch > & touches,
cocos2d::Event event
)

virtual

NA

virtual void onTouchesCancelled ( const std::vector< cocos2d::Touch > & touches,
cocos2d::Event event
)

virtual

NA

virtual void onTouchesEnded ( const std::vector< cocos2d::Touch > & touches,
cocos2d::Event event
)

virtual

NA

virtual void onTouchesMoved ( const std::vector< cocos2d::Touch > & touches,
cocos2d::Event event
)

virtual

NA

virtual void onTouchMoved ( cocos2d::Touch touch,
cocos2d::Event event
)

virtual

NA

virtual void setAccelerometerEnabled ( bool value)

virtual

virtual void setKeypadEnabled ( bool value)

virtual

virtual void setTouchEnabled ( bool value)

virtual

virtual void setTouchMode ( cocos2d::Touch::DispatchMode mode)

virtual

virtual void setTouchPriority ( int priority)

virtual

类成员变量说明

bool _accelerometerEnabled

protected

cocos2d::EventListener* _accelerometerListener

protected

cocos2d::EventListener* _keyboardListener

protected

bool _keypadEnabled

protected

bool _touchEnabled

protected

cocos2d::EventListener* _touchListener

protected


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/editor-support/cocostudio/CCInputDelegate.h