UNPKG

isaac-typescript-definitions

Version:

TypeScript definitions for The Binding of Isaac: Repentance.

36 lines (35 loc) 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Controller = void 0; /** * These enums loop after 31, so 32 = D_PAD_LEFT, 63 = D_PAD_LEFT, and so on. * * There appears to be no input key for joystick movement. */ var Controller; (function (Controller) { Controller[Controller["D_PAD_LEFT"] = 0] = "D_PAD_LEFT"; Controller[Controller["D_PAD_RIGHT"] = 1] = "D_PAD_RIGHT"; Controller[Controller["D_PAD_UP"] = 2] = "D_PAD_UP"; Controller[Controller["D_PAD_DOWN"] = 3] = "D_PAD_DOWN"; /** A, X and B on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_A"] = 4] = "BUTTON_A"; /** B, O and A on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_B"] = 5] = "BUTTON_B"; /** X, □ and Y on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_X"] = 6] = "BUTTON_X"; /** Y, Δ and X on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_Y"] = 7] = "BUTTON_Y"; /** Left shoulder button. */ Controller[Controller["BUMPER_LEFT"] = 8] = "BUMPER_LEFT"; Controller[Controller["TRIGGER_LEFT"] = 9] = "TRIGGER_LEFT"; Controller[Controller["STICK_LEFT"] = 10] = "STICK_LEFT"; /** Right shoulder button. */ Controller[Controller["BUMPER_RIGHT"] = 11] = "BUMPER_RIGHT"; Controller[Controller["TRIGGER_RIGHT"] = 12] = "TRIGGER_RIGHT"; Controller[Controller["STICK_RIGHT"] = 13] = "STICK_RIGHT"; /** Select, Share and - on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_BACK"] = 14] = "BUTTON_BACK"; /** Start, Options and + on Xbox, Playstation and Nintendo respectively. */ Controller[Controller["BUTTON_START"] = 15] = "BUTTON_START"; })(Controller || (exports.Controller = Controller = {}));