事件相关
The System event, it currently supports keyboard events and accelerometer events. You can get the SystemEvent instance with cc.systemEvent. example:
cc.systemEvent.on(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this); cc.systemEvent.off(cc.SystemEvent.EventType.DEVICEMOTION, this.onDeviceMotionEvent, this);
系统事件,它目前支持按键事件和重力感应事件。 你可以通过 cc.systemEvent 获取到 SystemEvent 的实例。
SystemEvent
EventTarget
系统事件单例,方便全局使用。
Generated using TypeDoc
事件相关