declare namespace openfl.ui { /** * The Keyboard class is used to build an interface that can be controlled by * a user with a standard keyboard. You can use the methods and properties of * the Keyboard class without using a constructor. The properties of the * Keyboard class are constants representing the keys that are most commonly * used to control games. * * @see [Capturing keyboard input](https://books.openfl.org/openfl-developers-guide/keyboard-input/capturing-keyboard-input.html) * @see `openfl.events.KeyboardEvent` * */ export class Keyboard { /** * Constant associated with the key code value for the 0 key(48). * */ static readonly NUMBER_0 = 48; /** * Constant associated with the key code value for the 1 key(49). * */ static readonly NUMBER_1 = 49; /** * Constant associated with the key code value for the 2 key(50). * */ static readonly NUMBER_2 = 50; /** * Constant associated with the key code value for the 3 key(51). * */ static readonly NUMBER_3 = 51; /** * Constant associated with the key code value for the 4 key(52). * */ static readonly NUMBER_4 = 52; /** * Constant associated with the key code value for the 5 key(53). * */ static readonly NUMBER_5 = 53; /** * Constant associated with the key code value for the 6 key(54). * */ static readonly NUMBER_6 = 54; /** * Constant associated with the key code value for the 7 key(55). * */ static readonly NUMBER_7 = 55; /** * Constant associated with the key code value for the 8 key(56). * */ static readonly NUMBER_8 = 56; /** * Constant associated with the key code value for the 9 key(57). * */ static readonly NUMBER_9 = 57; /** * Constant associated with the key code value for the A key(65). * */ static readonly A = 65; /** * Constant associated with the key code value for the B key(66). * */ static readonly B = 66; /** * Constant associated with the key code value for the C key(67). * */ static readonly C = 67; /** * Constant associated with the key code value for the D key(68). * */ static readonly D = 68; /** * Constant associated with the key code value for the E key(69). * */ static readonly E = 69; /** * Constant associated with the key code value for the F key(70). * */ static readonly F = 70; /** * Constant associated with the key code value for the G key(71). * */ static readonly G = 71; /** * Constant associated with the key code value for the H key(72). * */ static readonly H = 72; /** * Constant associated with the key code value for the I key(73). * */ static readonly I = 73; /** * Constant associated with the key code value for the J key(74). * */ static readonly J = 74; /** * Constant associated with the key code value for the K key(75). * */ static readonly K = 75; /** * Constant associated with the key code value for the L key(76). * */ static readonly L = 76; /** * Constant associated with the key code value for the M key(77). * */ static readonly M = 77; /** * Constant associated with the key code value for the N key(78). * */ static readonly N = 78; /** * Constant associated with the key code value for the O key(79). * */ static readonly O = 79; /** * Constant associated with the key code value for the P key(80). * */ static readonly P = 80; /** * Constant associated with the key code value for the Q key(81). * */ static readonly Q = 81; /** * Constant associated with the key code value for the R key(82). * */ static readonly R = 82; /** * Constant associated with the key code value for the S key(83). * */ static readonly S = 83; /** * Constant associated with the key code value for the T key(84). * */ static readonly T = 84; /** * Constant associated with the key code value for the U key(85). * */ static readonly U = 85; /** * Constant associated with the key code value for the V key(85). * */ static readonly V = 86; /** * Constant associated with the key code value for the W key(87). * */ static readonly W = 87; /** * Constant associated with the key code value for the X key(88). * */ static readonly X = 88; /** * Constant associated with the key code value for the Y key(89). * */ static readonly Y = 89; /** * Constant associated with the key code value for the Z key(90). * */ static readonly Z = 90; /** * Constant associated with the key code value for the number 0 key on the * number pad(96). * */ static readonly NUMPAD_0 = 96; /** * Constant associated with the key code value for the number 1 key on the * number pad(97). * */ static readonly NUMPAD_1 = 97; /** * Constant associated with the key code value for the number 2 key on the * number pad(98). * */ static readonly NUMPAD_2 = 98; /** * Constant associated with the key code value for the number 3 key on the * number pad(99). * */ static readonly NUMPAD_3 = 99; /** * Constant associated with the key code value for the number 4 key on the * number pad(100). * */ static readonly NUMPAD_4 = 100; /** * Constant associated with the key code value for the number 5 key on the * number pad(101). * */ static readonly NUMPAD_5 = 101; /** * Constant associated with the key code value for the number 6 key on the * number pad(102). * */ static readonly NUMPAD_6 = 102; /** * Constant associated with the key code value for the number 7 key on the * number pad(103). * */ static readonly NUMPAD_7 = 103; /** * Constant associated with the key code value for the number 8 key on the * number pad(104). * */ static readonly NUMPAD_8 = 104; /** * Constant associated with the key code value for the number 9 key on the * number pad(105). * */ static readonly NUMPAD_9 = 105; /** * Constant associated with the key code value for the multiplication key on * the number pad(106). * */ static readonly NUMPAD_MULTIPLY = 106; /** * Constant associated with the key code value for the addition key on the * number pad(107). * */ static readonly NUMPAD_ADD = 107; /** * Constant associated with the key code value for the Enter key on the * number pad(108). * */ static readonly NUMPAD_ENTER = 108; /** * Constant associated with the key code value for the subtraction key on the * number pad(109). * */ static readonly NUMPAD_SUBTRACT = 109; /** * Constant associated with the key code value for the decimal key on the * number pad(110). * */ static readonly NUMPAD_DECIMAL = 110; /** * Constant associated with the key code value for the division key on the * number pad(111). * */ static readonly NUMPAD_DIVIDE = 111; /** * Constant associated with the key code value for the F1 key(112). * */ static readonly F1 = 112; /** * Constant associated with the key code value for the F2 key(113). * */ static readonly F2 = 113; /** * Constant associated with the key code value for the F3 key(114). * */ static readonly F3 = 114; /** * Constant associated with the key code value for the F4 key(115). * */ static readonly F4 = 115; /** * Constant associated with the key code value for the F5 key(116). * */ static readonly F5 = 116; /** * Constant associated with the key code value for the F6 key(117). * */ static readonly F6 = 117; /** * Constant associated with the key code value for the F7 key(118). * */ static readonly F7 = 118; /** * Constant associated with the key code value for the F8 key(119). * */ static readonly F8 = 119; /** * Constant associated with the key code value for the F9 key(120). * */ static readonly F9 = 120; /** * Constant associated with the key code value for the F10 key(121). * */ static readonly F10 = 121; /** * Constant associated with the key code value for the F11 key(122). * */ static readonly F11 = 122; /** * Constant associated with the key code value for the F12 key(123). * */ static readonly F12 = 123; /** * Constant associated with the key code value for the F13 key(124). * */ static readonly F13 = 124; /** * Constant associated with the key code value for the F14 key(125). * */ static readonly F14 = 125; /** * Constant associated with the key code value for the F15 key(126). * */ static readonly F15 = 126; /** * Constant associated with the key code value for the Backspace key(8). * */ static readonly BACKSPACE = 8; /** * Constant associated with the key code value for the Tab key(9). * */ static readonly TAB = 9; /** * Constant associated with the key code value for the Alternate (Option) key * (18). * */ static readonly ALTERNATE = 18; /** * Constant associated with the key code value for the Enter key(13). * */ static readonly ENTER = 13; /** * Constant associated with the Mac command key (15). This constant is * currently only used for setting menu key equivalents. * */ static readonly COMMAND = 15; /** * Constant associated with the key code value for the Shift key(16). * */ static readonly SHIFT = 16; /** * Constant associated with the key code value for the Control key(17). * */ static readonly CONTROL = 17; /** * Constant associated with the key code value for the Caps Lock key(20). * */ static readonly CAPS_LOCK = 20; /** * Constant associated with the pseudo-key code for the the number pad(21). * Use to set numpad modifier on key equivalents * */ static readonly NUMPAD = 21; /** * Constant associated with the key code value for the Escape key(27). * */ static readonly ESCAPE = 27; /** * Constant associated with the key code value for the Spacebar(32). * */ static readonly SPACE = 32; /** * Constant associated with the key code value for the Page Up key(33). * */ static readonly PAGE_UP = 33; /** * Constant associated with the key code value for the Page Down key(34). * */ static readonly PAGE_DOWN = 34; /** * Constant associated with the key code value for the End key(35). * */ static readonly END = 35; /** * Constant associated with the key code value for the Home key(36). * */ static readonly HOME = 36; /** * Constant associated with the key code value for the Left Arrow key(37). * */ static readonly LEFT = 37; /** * Constant associated with the key code value for the Right Arrow key(39). * */ static readonly RIGHT = 39; /** * Constant associated with the key code value for the Up Arrow key(38). * */ static readonly UP = 38; /** * Constant associated with the key code value for the Down Arrow key(40). * */ static readonly DOWN = 40; /** * Constant associated with the key code value for the Insert key(45). * */ static readonly INSERT = 45; /** * Constant associated with the key code value for the Delete key(46). * */ static readonly DELETE = 46; /** * Constant associated with the key code value for the ; key(186). * */ static readonly SEMICOLON = 186; /** * Constant associated with the key code value for the:Int = key(187). * */ static readonly EQUAL = 187; /** * Constant associated with the key code value for the , key(188). * */ static readonly COMMA = 188; /** * Constant associated with the key code value for the - key(189). * */ static readonly MINUS = 189; /** * Constant associated with the key code value for the . key(190). * */ static readonly PERIOD = 190; /** * Constant associated with the key code value for the / key(191). * */ static readonly SLASH = 191; /** * Constant associated with the key code value for the ` key(192). * */ static readonly BACKQUOTE = 192; /** * Constant associated with the key code value for the [ key(219). * */ static readonly LEFTBRACKET = 219; /** * Constant associated with the key code value for the \ key(220). * */ static readonly BACKSLASH = 220; /** * Constant associated with the key code value for the ] key(221). * */ static readonly RIGHTBRACKET = 221; /** * Constant associated with the key code value for the ' key(222). * */ static readonly QUOTE = 222; /** * Specifies whether the Caps Lock key is activated (`true`) or * not (`false`). * */ static capsLock: boolean; /** * Specifies whether the Num Lock key is activated (`true`) or not * (`false`). * */ static numLock: boolean; /** * Specifies whether the last key pressed is accessible by other SWF files. * By default, security restrictions prevent code from a SWF file in one * domain from accessing a keystroke generated from a SWF file in another * domain. * * @return The value `true` if the last key pressed can be * accessed. If access is not permitted, this method returns * `false`. * */ static isAccessible(): boolean; } } export default openfl.ui.Keyboard;