mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Fix function signature of SystemEvent class (#4563)
This commit is contained in:
committed by
Weiliang Wang
parent
a8b3e5a283
commit
6928a417ed
@@ -88,7 +88,7 @@ export class SystemEvent extends EventTarget {
|
||||
inputManager.setAccelerometerInterval(interval);
|
||||
}
|
||||
|
||||
public on (type: SystemEventType.KEY_DOWN | SystemEventType.KEY_UP, callback: (event: EventKeyboard) => void);
|
||||
public on (type: SystemEventType.KEY_DOWN | SystemEventType.KEY_UP, callback: (event: EventKeyboard) => void, target?: Object);
|
||||
|
||||
public on (type: string, callback: Function, target?: Object) {
|
||||
if (CC_EDITOR) {
|
||||
|
||||
Reference in New Issue
Block a user