Adding missing event handlers in Typescript definitions

This commit is contained in:
cloakedninjas 2015-08-11 15:56:56 +01:00
parent 19584b78a3
commit 6d9240b176
2 changed files with 18 additions and 0 deletions

View file

@ -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.
*

View file

@ -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;