handle pointerup event
This commit is contained in:
@@ -18,6 +18,11 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
|
||||
this.gameScene.zoomByFactor(1 - (deltaY / 53) * 0.1);
|
||||
}
|
||||
|
||||
public handlePointerUpEvent(pointer: Phaser.Input.Pointer, gameObjects: Phaser.GameObjects.GameObject[]): void {
|
||||
const camera = this.gameScene.cameras.main;
|
||||
console.log(`${pointer.x + camera.scrollX}, ${pointer.y + camera.scrollY}`);
|
||||
}
|
||||
|
||||
public handleSpaceKeyUpEvent(event: Event): Event {
|
||||
this.gameScene.activateOutlinedItem();
|
||||
return event;
|
||||
|
||||
Reference in New Issue
Block a user