Skip to content

Documentation / @debuffjp/input / ToLogical

Type Alias: ToLogical ​

ToLogical = (clientX, clientY) => object

Defined in: pointer.ts:2

Maps client (event) coordinates to the game's logical coordinates. Game.toLogical fits.

Parameters ​

clientX ​

number

clientY ​

number

Returns ​

object

x ​

x: number

y ​

y: number