UNPKG

isaac-typescript-definitions

Version:

TypeScript definitions for The Binding of Isaac: Repentance.

181 lines (180 loc) 8.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ButtonAction = void 0; var ButtonAction; (function (ButtonAction) { /** This only fires on `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["LEFT"] = 0] = "LEFT"; /** This only fires on `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["RIGHT"] = 1] = "RIGHT"; /** This only fires on `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["UP"] = 2] = "UP"; /** This only fires on `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["DOWN"] = 3] = "DOWN"; /** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["SHOOT_LEFT"] = 4] = "SHOOT_LEFT"; /** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["SHOOT_RIGHT"] = 5] = "SHOOT_RIGHT"; /** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["SHOOT_UP"] = 6] = "SHOOT_UP"; /** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.GET_ACTION_VALUE` (2). */ ButtonAction[ButtonAction["SHOOT_DOWN"] = 7] = "SHOOT_DOWN"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["BOMB"] = 8] = "BOMB"; /** This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["ITEM"] = 9] = "ITEM"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["PILL_CARD"] = 10] = "PILL_CARD"; /** * This is also used for switching cards, switching The Forgotten, holding Esau in place, and so * on. * * This fires on `InputHook.IS_ACTION_PRESSED` (0) and `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["DROP"] = 11] = "DROP"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["PAUSE"] = 12] = "PAUSE"; /** This only fires on `InputHook.IS_ACTION_PRESSED` (0). */ ButtonAction[ButtonAction["MAP"] = 13] = "MAP"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["MENU_CONFIRM"] = 14] = "MENU_CONFIRM"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["MENU_BACK"] = 15] = "MENU_BACK"; /** * This only fires on `InputHook.IS_ACTION_PRESSED` (0). * * - Restart is 16 in Repentance. * - Restart is 18 in Repentance+. * - Fullscreen is 16 in Repentance+. */ ButtonAction[ButtonAction["RESTART_REPENTANCE"] = 16] = "RESTART_REPENTANCE"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Fullscreen is 17 in Repentance. * - Fullscreen is 16 in Repentance+. * - Restart is 16 in Repentance. */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["FULLSCREEN_REPENTANCE_PLUS"] = 16] = "FULLSCREEN_REPENTANCE_PLUS"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Fullscreen is 17 in Repentance. * - Fullscreen is 16 in Repentance+. * - Mute is 17 in Repentance+. */ ButtonAction[ButtonAction["FULLSCREEN_REPENTANCE"] = 17] = "FULLSCREEN_REPENTANCE"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Mute is 18 in Repentance. * - Mute is 17 in Repentance+. * - Fullscreen is 17 in Repentance. */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["MUTE_REPENTANCE_PLUS"] = 17] = "MUTE_REPENTANCE_PLUS"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Mute is 18 in Repentance. * - Mute is 17 in Repentance+. * - Restart is 18 in Repentance+. */ ButtonAction[ButtonAction["MUTE_REPENTANCE"] = 18] = "MUTE_REPENTANCE"; /** * This only fires on `InputHook.IS_ACTION_PRESSED` (0). * * - Restart is 16 in Repentance. * - Restart is 18 in Repentance+. * - Mute is 18 in Repentance. */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["RESTART_REPENTANCE_PLUS"] = 18] = "RESTART_REPENTANCE_PLUS"; /** Does not seem to trigger any input hooks while on keyboard. */ ButtonAction[ButtonAction["JOIN_MULTIPLAYER"] = 19] = "JOIN_MULTIPLAYER"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["MENU_LEFT"] = 20] = "MENU_LEFT"; /** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */ ButtonAction[ButtonAction["MENU_RIGHT"] = 21] = "MENU_RIGHT"; /** Does not seem to trigger any input hooks while on keyboard. */ ButtonAction[ButtonAction["MENU_UP"] = 22] = "MENU_UP"; /** Does not seem to trigger any input hooks while on keyboard. */ ButtonAction[ButtonAction["MENU_DOWN"] = 23] = "MENU_DOWN"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu left trigger is 24 in Repentance. * - Menu left trigger is 26 in Repentance+. * - Menu left shoulder is 24 in Repentance+. */ ButtonAction[ButtonAction["MENU_LEFT_TRIGGER_REPENTANCE"] = 24] = "MENU_LEFT_TRIGGER_REPENTANCE"; /** Added in Repentance+. (It took the old value for "MENU_LEFT_TRIGGER".) */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["MENU_LEFT_SHOULDER"] = 24] = "MENU_LEFT_SHOULDER"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu right trigger is 25 in Repentance. * - Menu right trigger is 27 in Repentance+. * - Menu right shoulder is 25 in Repentance+. */ ButtonAction[ButtonAction["MENU_RIGHT_TRIGGER_REPENTANCE"] = 25] = "MENU_RIGHT_TRIGGER_REPENTANCE"; /** Added in Repentance+. (It took the old value for "MENU_RIGHT_TRIGGER".) */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["MENU_RIGHT_SHOULDER"] = 25] = "MENU_RIGHT_SHOULDER"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu tab is 26 in Repentance. * - Menu tab is 28 in Repentance+. * - Menu left trigger is 26 in Repentance+. */ ButtonAction[ButtonAction["MENU_TAB_REPENTANCE"] = 26] = "MENU_TAB_REPENTANCE"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu left trigger is 24 in Repentance. * - Menu left trigger is 26 in Repentance+. * - Menu tab is 26 in Repentance. */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["MENU_LEFT_TRIGGER_REPENTANCE_PLUS"] = 26] = "MENU_LEFT_TRIGGER_REPENTANCE_PLUS"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu right trigger is 25 in Repentance. * - Menu right trigger is 27 in Repentance+. * - No enum values are equal to 27 in Repentance. */ ButtonAction[ButtonAction["MENU_RIGHT_TRIGGER_REPENTANCE_PLUS"] = 27] = "MENU_RIGHT_TRIGGER_REPENTANCE_PLUS"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Console is 28 in Repentance. * - Console is 32 in Repentance+. * - Menu tab is 28 in Repentance+. */ ButtonAction[ButtonAction["CONSOLE_REPENTANCE"] = 28] = "CONSOLE_REPENTANCE"; /** * Does not seem to trigger any input hooks while on keyboard. * * - Menu tab is 26 in Repentance. * - Menu tab is 28 in Repentance+. * - Console is 28 in Repentance. */ // eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values ButtonAction[ButtonAction["MENU_TAB_REPENTANCE_PLUS"] = 28] = "MENU_TAB_REPENTANCE_PLUS"; /** Added in Repentance+. */ ButtonAction[ButtonAction["MENU_EX"] = 29] = "MENU_EX"; /** Added in Repentance+. */ ButtonAction[ButtonAction["EMOTES"] = 30] = "EMOTES"; /** * This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). * * - Console is 28 in Repentance. * - Console is 32 in Repentance+. * - No enum values are equal to 32 in Repentance. */ ButtonAction[ButtonAction["CONSOLE_REPENTANCE_PLUS"] = 32] = "CONSOLE_REPENTANCE_PLUS"; })(ButtonAction || (exports.ButtonAction = ButtonAction = {}));