From de108e8a40acc14c7f2242a7e6196773e9e04a44 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Sat, 15 Feb 2025 11:23:41 -0600 Subject: [PATCH] Initial Commit --- src/ship.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ship.ts b/src/ship.ts index 0a76f49..89e4f66 100644 --- a/src/ship.ts +++ b/src/ship.ts @@ -319,19 +319,19 @@ export class Ship { } } private setupMouse() { - this._ship.getScene().onPointerDown = (evt, pickInfo, type) => { + this._ship.getScene().onPointerDown = (evt) => { this._mousePos.x = evt.x; this._mousePos.y = evt.y; this._mouseDown = true; } - this._ship.getScene().onPointerUp = (evt, pickInfo, type) => { + this._ship.getScene().onPointerUp = () => { this._mouseDown = false; } - this._ship.getScene().onPointerMove = (evt, pickInfo, type) => { + this._ship.getScene().onPointerMove = () => { }; - this._ship.getScene().onPointerMove = (ev, pickInfo, type) => { + this._ship.getScene().onPointerMove = (ev) => { if (!this._mouseDown) {return}; const xInc = this._rightStickVector.x = (ev.x - this._mousePos.x) / 100; const yInc = this._rightStickVector.y = (ev.y - this._mousePos.y) / 100;