From 416002094b650a6f961e310f66f17f69e5ba77a3 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 20 Nov 2024 16:28:52 +0800 Subject: [PATCH] Rename --- cocos/input/input.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cocos/input/input.ts b/cocos/input/input.ts index 2c5832ea27d..b9435be729b 100644 --- a/cocos/input/input.ts +++ b/cocos/input/input.ts @@ -369,27 +369,27 @@ export class Input { this._mouseInput$.on(InputEventType.MOUSE_DOWN, (event): void => { this._needSimulateTouchMoveEvent$ = true; this._simulateEventTouch$(event); - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); this._mouseInput$.on(InputEventType.MOUSE_MOVE, (event): void => { if (this._needSimulateTouchMoveEvent$) { this._simulateEventTouch$(event); } - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); this._mouseInput$.on(InputEventType.MOUSE_UP, (event): void => { this._needSimulateTouchMoveEvent$ = false; this._simulateEventTouch$(event); - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); this._mouseInput$.on(InputEventType.MOUSE_WHEEL, (event): void => { - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); this._mouseInput$.on(InputEventType.MOUSE_LEAVE, (event): void => { - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); this._mouseInput$.on(InputEventType.MOUSE_ENTER, (event): void => { - this._dispatchMouseEvent$(event); + this._dispatchEventMouse$(event); }); } @@ -470,7 +470,7 @@ export class Input { } } - private _dispatchMouseEvent$ (event: Event): void { + private _dispatchEventMouse$ (event: Event): void { this._emitEvent$(event); }