mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 20:13:35 +00:00
25 lines
722 B
TypeScript
25 lines
722 B
TypeScript
|
/// <reference path="../../Game.d.ts" />
|
||
|
module Phaser {
|
||
|
class Mouse {
|
||
|
constructor(game: Game);
|
||
|
private _game;
|
||
|
private _x;
|
||
|
private _y;
|
||
|
public button: number;
|
||
|
static LEFT_BUTTON: number;
|
||
|
static MIDDLE_BUTTON: number;
|
||
|
static RIGHT_BUTTON: number;
|
||
|
public isDown: bool;
|
||
|
public isUp: bool;
|
||
|
public timeDown: number;
|
||
|
public duration: number;
|
||
|
public timeUp: number;
|
||
|
public start(): void;
|
||
|
public reset(): void;
|
||
|
public onMouseDown(event: MouseEvent): void;
|
||
|
public update(): void;
|
||
|
public onMouseMove(event: MouseEvent): void;
|
||
|
public onMouseUp(event: MouseEvent): void;
|
||
|
}
|
||
|
}
|