mirror of
https://github.com/photonstorm/phaser
synced 2025-02-19 23:48:33 +00:00
Key.justReleased has bee renamed to Key.upDuration which is a much clearer name for what the method actually does. See Key.justUp for a nice clean alternative. Key.justDown allows you to test if a Key has just been pressed down or not. You can only call justDown once per key press. It will only return `true` once, until the Key is released and pressed down again. This allows you to use it in situations where you want to check if this key is down without using a Signal, such as in a core game loop (thanks @pjbaron #1321) Key.justUp allows you to test if a Key has just been released or not. You can only call justUp once per key press. It will only return `true` once, until the Key is pressed down and released again. This allows you to use it in situations where you want to check if this key is up without using a Signal, such as in a core game loop (thanks @pjbaron #1321) |
||
---|---|---|
.. | ||
phaser.d.ts | ||
pixi.d.ts | ||
readme.md | ||
webgl.d.ts |
TypeScript Definitions
If you are a phaser dev then reference the phaser.d.ts
in your project.
phaser.d.ts
contains a reference topixi.d.ts
and so both these files must remain siblings in the same directory.pixi.d.ts
has no dependencies and can be used by pixi devs standalone*
*Versions of TypeScript lower than version 1.0 may experience errors in pixi.d.ts
due to missing WebGL definitions. If you fall into this category and cannot upgrade your version, then a webgl.d.ts
has been provided but is disabled by default. Add this line to the top of the pixi.d.ts
file /// <reference path="webgl.d.ts" />
Contributing
If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch.