mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Adding missing event handlers in Typescript definitions
This commit is contained in:
parent
19584b78a3
commit
6d9240b176
2 changed files with 18 additions and 0 deletions
16
typescript/phaser.comments.d.ts
vendored
16
typescript/phaser.comments.d.ts
vendored
|
@ -2325,6 +2325,22 @@ declare module Phaser {
|
|||
*/
|
||||
setFrames(overFrame?: string|number, outFrame?: string|number, downFrame?: string|number, upFrame?: string|number): void;
|
||||
|
||||
/**
|
||||
* Internal function that handles input events.
|
||||
*
|
||||
* @param sprite The Button that the event occurred on.
|
||||
* @param pointer The Pointer that activated the Button.
|
||||
*/
|
||||
onInputOverHandler(sprite: Phaser.Button, pointer: Phaser.Pointer): void;
|
||||
|
||||
/**
|
||||
* Internal function that handles input events.
|
||||
*
|
||||
* @param sprite The Button that the event occurred on.
|
||||
* @param pointer The Pointer that activated the Button.
|
||||
*/
|
||||
onInputOutHandler(sprite: Phaser.Button, pointer: Phaser.Pointer): void;
|
||||
|
||||
/**
|
||||
* Internal function that handles input events.
|
||||
*
|
||||
|
|
2
typescript/phaser.d.ts
vendored
2
typescript/phaser.d.ts
vendored
|
@ -381,6 +381,8 @@ declare module Phaser {
|
|||
clearFrames(): void;
|
||||
setDownSound(sound: Phaser.Sound|Phaser.AudioSprite, marker?: string): void;
|
||||
setFrames(overFrame?: string|number, outFrame?: string|number, downFrame?: string|number, upFrame?: string|number): void;
|
||||
onInputOverHandler(sprite: Phaser.Button, pointer: Phaser.Pointer): void;
|
||||
onInputOutHandler(sprite: Phaser.Button, pointer: Phaser.Pointer): void;
|
||||
onInputDownHandler(sprite: Phaser.Button, pointer: Phaser.Pointer): void;
|
||||
onInputUpHandler(sprite: Phaser.Button, pointer: Phaser.Pointer, isOver: boolean): void;
|
||||
removedFromWorld(): void;
|
||||
|
|
Loading…
Reference in a new issue