#include <UIInputManager.h>
Public Member Functions | |
| UIInputManager () | |
| virtual | ~UIInputManager () |
| Default destructor. More... | |
| void | registWidget (UIWidget *widget) |
| Regist a widget to input manager. More... | |
| void | removeManageredWidget (UIWidget *widget) |
| Remove a registed widget from input manager. More... | |
| bool | checkEventWidget (const cocos2d::Point &touchPoint) |
| Finds a widget which is selected and call it's "onTouchBegan" method. More... | |
| void | update (float dt) |
| bool | onTouchBegan (cocos2d::Touch *touch) |
| void | onTouchMoved (cocos2d::Touch *touch) |
| void | onTouchEnd (cocos2d::Touch *touch) |
| void | onTouchCancelled (cocos2d::Touch *touch) |
| void | setRootWidget (UIWidget *root) |
| UIWidget * | getRootWidget () |
| void | addCheckedDoubleClickWidget (UIWidget *widget) |
Protected Member Functions | |
| bool | checkTouchEvent (UIWidget *root, const cocos2d::Point &touchPoint) |
| UIInputManager | ( | ) |
|
virtual |
Default destructor.
| void addCheckedDoubleClickWidget | ( | UIWidget * | widget) |
| bool checkEventWidget | ( | const cocos2d::Point & | touchPoint) |
Finds a widget which is selected and call it's "onTouchBegan" method.
| touch | point. |
|
protected |
| UIWidget* getRootWidget | ( | ) |
| bool onTouchBegan | ( | cocos2d::Touch * | touch) |
| void onTouchCancelled | ( | cocos2d::Touch * | touch) |
| void onTouchEnd | ( | cocos2d::Touch * | touch) |
| void onTouchMoved | ( | cocos2d::Touch * | touch) |
| void registWidget | ( | UIWidget * | widget) |
Regist a widget to input manager.
| widget | registed widget can be touched. |
| void removeManageredWidget | ( | UIWidget * | widget) |
Remove a registed widget from input manager.
| widget | widget which will be removed. |
| void setRootWidget | ( | UIWidget * | root) |
| void update | ( | float | dt) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |