#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 CCPoint &touchPoint) |
| Finds a widget which is selected and call it's "onTouchBegan" method. More... | |
| void | update (float dt) |
| bool | onTouchBegan (CCTouch *touch) |
| void | onTouchMoved (CCTouch *touch) |
| void | onTouchEnd (CCTouch *touch) |
| void | onTouchCancelled (CCTouch *touch) |
| void | setRootWidget (UIWidget *root) |
| UIWidget * | getRootWidget () |
| void | addCheckedDoubleClickWidget (UIWidget *widget) |
Protected Member Functions | |
| bool | checkTouchEvent (UIWidget *root, const CCPoint &touchPoint) |
Protected Attributes | |
| CCArray * | m_manageredWidget |
| CCArray * | m_pSelectedWidgets |
| CCPoint | touchBeganedPoint |
| CCPoint | touchMovedPoint |
| CCPoint | touchEndedPoint |
| CCPoint | touchCanceledPoint |
| bool | m_bTouchDown |
| float | m_fLongClickTime |
| float | m_fLongClickRecordTime |
| CCArray * | checkedDoubleClickWidget |
| UIWidget * | m_pRootWidget |
| UIInputManager | ( | ) |
|
virtual |
Default destructor.
| void addCheckedDoubleClickWidget | ( | UIWidget * | widget) |
| bool checkEventWidget | ( | const CCPoint & | touchPoint) |
Finds a widget which is selected and call it's "onTouchBegan" method.
| touch | point. |
| UIWidget* getRootWidget | ( | ) |
| bool onTouchBegan | ( | CCTouch * | touch) |
| void onTouchCancelled | ( | CCTouch * | touch) |
| void onTouchEnd | ( | CCTouch * | touch) |
| void onTouchMoved | ( | CCTouch * | 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 |