http://cn.cocos2d-x.org/tutorial/show?id=835
http://cn.cocos2d-x.org/tutorial/show?id=2343
Event,EventLisrener,EventDispatcher,Touch
1.Event:Type,isStoped,curTarget
enum class Type
{
TOUCH,
KEYBOARD,
ACCELERATION,
MOUSE,
CUSTOM
};
事件的各类分别为 ,触摸事件, 键盘事件, 加速器事件,鼠标事件, 用户自定义事件。
EventCustom:自定义事件(eventName,userData)
2.EventLisrener(抽象类):Type,onEvent|..listenerID,isRegisterd,paused,isEnabled..
enum class Type
{
UNKNOWN,
TOUCH_ONE_BY_ONE,