mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
New FXManager system and Camera FX now in place.
This commit is contained in:
Vendored
+117
@@ -0,0 +1,117 @@
|
||||
/// <reference path="../../Game.d.ts" />
|
||||
module Phaser {
|
||||
class Keyboard {
|
||||
constructor(game: Game);
|
||||
private _game;
|
||||
private _keys;
|
||||
private _capture;
|
||||
public start(): void;
|
||||
public addKeyCapture(keycode): void;
|
||||
public removeKeyCapture(keycode: number): void;
|
||||
public clearCaptures(): void;
|
||||
public onKeyDown(event: KeyboardEvent): void;
|
||||
public onKeyUp(event: KeyboardEvent): void;
|
||||
public reset(): void;
|
||||
public justPressed(keycode: number, duration?: number): bool;
|
||||
public justReleased(keycode: number, duration?: number): bool;
|
||||
public isDown(keycode: number): bool;
|
||||
static A: number;
|
||||
static B: number;
|
||||
static C: number;
|
||||
static D: number;
|
||||
static E: number;
|
||||
static F: number;
|
||||
static G: number;
|
||||
static H: number;
|
||||
static I: number;
|
||||
static J: number;
|
||||
static K: number;
|
||||
static L: number;
|
||||
static M: number;
|
||||
static N: number;
|
||||
static O: number;
|
||||
static P: number;
|
||||
static Q: number;
|
||||
static R: number;
|
||||
static S: number;
|
||||
static T: number;
|
||||
static U: number;
|
||||
static V: number;
|
||||
static W: number;
|
||||
static X: number;
|
||||
static Y: number;
|
||||
static Z: number;
|
||||
static ZERO: number;
|
||||
static ONE: number;
|
||||
static TWO: number;
|
||||
static THREE: number;
|
||||
static FOUR: number;
|
||||
static FIVE: number;
|
||||
static SIX: number;
|
||||
static SEVEN: number;
|
||||
static EIGHT: number;
|
||||
static NINE: number;
|
||||
static NUMPAD_0: number;
|
||||
static NUMPAD_1: number;
|
||||
static NUMPAD_2: number;
|
||||
static NUMPAD_3: number;
|
||||
static NUMPAD_4: number;
|
||||
static NUMPAD_5: number;
|
||||
static NUMPAD_6: number;
|
||||
static NUMPAD_7: number;
|
||||
static NUMPAD_8: number;
|
||||
static NUMPAD_9: number;
|
||||
static NUMPAD_MULTIPLY: number;
|
||||
static NUMPAD_ADD: number;
|
||||
static NUMPAD_ENTER: number;
|
||||
static NUMPAD_SUBTRACT: number;
|
||||
static NUMPAD_DECIMAL: number;
|
||||
static NUMPAD_DIVIDE: number;
|
||||
static F1: number;
|
||||
static F2: number;
|
||||
static F3: number;
|
||||
static F4: number;
|
||||
static F5: number;
|
||||
static F6: number;
|
||||
static F7: number;
|
||||
static F8: number;
|
||||
static F9: number;
|
||||
static F10: number;
|
||||
static F11: number;
|
||||
static F12: number;
|
||||
static F13: number;
|
||||
static F14: number;
|
||||
static F15: number;
|
||||
static COLON: number;
|
||||
static EQUALS: number;
|
||||
static UNDERSCORE: number;
|
||||
static QUESTION_MARK: number;
|
||||
static TILDE: number;
|
||||
static OPEN_BRACKET: number;
|
||||
static BACKWARD_SLASH: number;
|
||||
static CLOSED_BRACKET: number;
|
||||
static QUOTES: number;
|
||||
static BACKSPACE: number;
|
||||
static TAB: number;
|
||||
static CLEAR: number;
|
||||
static ENTER: number;
|
||||
static SHIFT: number;
|
||||
static CONTROL: number;
|
||||
static ALT: number;
|
||||
static CAPS_LOCK: number;
|
||||
static ESC: number;
|
||||
static SPACEBAR: number;
|
||||
static PAGE_UP: number;
|
||||
static PAGE_DOWN: number;
|
||||
static END: number;
|
||||
static HOME: number;
|
||||
static LEFT: number;
|
||||
static UP: number;
|
||||
static RIGHT: number;
|
||||
static DOWN: number;
|
||||
static INSERT: number;
|
||||
static DELETE: number;
|
||||
static HELP: number;
|
||||
static NUM_LOCK: number;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user