Static variables

staticread onlyisEnabled:Bool = false

statickeyList:Map<String, KeyCode> = ["unknown" => cast (0, KeyCode), "back" => cast (1, KeyCode), "cancel" => cast (3, KeyCode), "help" => cast (6, KeyCode), "backspace" => cast (8, KeyCode), "tab" => cast (9, KeyCode), "clear" => cast (12, KeyCode), "return" => cast (13, KeyCode), "shift" => cast (16, KeyCode), "control" => cast (17, KeyCode), "alt" => cast (18, KeyCode), "pause" => cast (19, KeyCode), "capslock" => cast (20, KeyCode), "kana" => cast (21, KeyCode), "hangul" => cast (21, KeyCode), "eisu" => cast (22, KeyCode), "junja" => cast (23, KeyCode), "final" => cast (24, KeyCode), "hanja" => cast (25, KeyCode), "kanji" => cast (25, KeyCode), "escape" => cast (27, KeyCode), "convert" => cast (28, KeyCode), "nonconvert" => cast (29, KeyCode), "accept" => cast (30, KeyCode), "modechange" => cast (31, KeyCode), "space" => cast (32, KeyCode), "pageup" => cast (33, KeyCode), "pagedown" => cast (34, KeyCode), "end" => cast (35, KeyCode), "home" => cast (36, KeyCode), "left" => cast (37, KeyCode), "up" => cast (38, KeyCode), "right" => cast (39, KeyCode), "down" => cast (40, KeyCode), "select" => cast (41, KeyCode), "print" => cast (42, KeyCode), "execute" => cast (43, KeyCode), "printscreen" => cast (44, KeyCode), "insert" => cast (45, KeyCode), "delete" => cast (46, KeyCode), "zero" => cast (48, KeyCode), "one" => cast (49, KeyCode), "two" => cast (50, KeyCode), "three" => cast (51, KeyCode), "four" => cast (52, KeyCode), "five" => cast (53, KeyCode), "six" => cast (54, KeyCode), "seven" => cast (55, KeyCode), "eight" => cast (56, KeyCode), "nine" => cast (57, KeyCode), "colon" => cast (58, KeyCode), "semicolon" => cast (59, KeyCode), "lessthan" => cast (60, KeyCode), "equals" => cast (61, KeyCode), "greaterthan" => cast (62, KeyCode), "questionmark" => cast (63, KeyCode), "at" => cast (64, KeyCode), "a" => cast (65, KeyCode), "b" => cast (66, KeyCode), "c" => cast (67, KeyCode), "d" => cast (68, KeyCode), "e" => cast (69, KeyCode), "f" => cast (70, KeyCode), "g" => cast (71, KeyCode), "h" => cast (72, KeyCode), "i" => cast (73, KeyCode), "j" => cast (74, KeyCode), "k" => cast (75, KeyCode), "l" => cast (76, KeyCode), "m" => cast (77, KeyCode), "n" => cast (78, KeyCode), "o" => cast (79, KeyCode), "p" => cast (80, KeyCode), "q" => cast (81, KeyCode), "r" => cast (82, KeyCode), "s" => cast (83, KeyCode), "t" => cast (84, KeyCode), "u" => cast (85, KeyCode), "v" => cast (86, KeyCode), "w" => cast (87, KeyCode), "x" => cast (88, KeyCode), "y" => cast (89, KeyCode), "z" => cast (90, KeyCode), "win" => cast (91, KeyCode), "contextmenu" => cast (93, KeyCode), "sleep" => cast (95, KeyCode), "numpad0" => cast (96, KeyCode), "numpad1" => cast (97, KeyCode), "numpad2" => cast (98, KeyCode), "numpad3" => cast (99, KeyCode), "numpad4" => cast (100, KeyCode), "numpad5" => cast (101, KeyCode), "numpad6" => cast (102, KeyCode), "numpad7" => cast (103, KeyCode), "numpad8" => cast (104, KeyCode), "numpad9" => cast (105, KeyCode), "multiply" => cast (106, KeyCode), "add" => cast (107, KeyCode), "separator" => cast (108, KeyCode), "subtract" => cast (109, KeyCode), "decimal" => cast (110, KeyCode), "divide" => cast (111, KeyCode), "f1" => cast (112, KeyCode), "f2" => cast (113, KeyCode), "f3" => cast (114, KeyCode), "f4" => cast (115, KeyCode), "f5" => cast (116, KeyCode), "f6" => cast (117, KeyCode), "f7" => cast (118, KeyCode), "f8" => cast (119, KeyCode), "f9" => cast (120, KeyCode), "f10" => cast (121, KeyCode), "f11" => cast (122, KeyCode), "f12" => cast (123, KeyCode), "f13" => cast (124, KeyCode), "f14" => cast (125, KeyCode), "f15" => cast (126, KeyCode), "f16" => cast (127, KeyCode), "f17" => cast (128, KeyCode), "f18" => cast (129, KeyCode), "f19" => cast (130, KeyCode), "f20" => cast (131, KeyCode), "f21" => cast (132, KeyCode), "f22" => cast (133, KeyCode), "f23" => cast (134, KeyCode), "f24" => cast (135, KeyCode), "numlock" => cast (144, KeyCode), "scrolllock" => cast (145, KeyCode), "winoemfjjisho" => cast (146, KeyCode), "winoemfjmasshou" => cast (147, KeyCode), "winoemfjtouroku" => cast (148, KeyCode), "winoemfjloya" => cast (149, KeyCode), "winoemfjroya" => cast (150, KeyCode), "circumflex" => cast (160, KeyCode), "exclamation" => cast (161, KeyCode), "doublequote" => cast (162, KeyCode), "hash" => cast (163, KeyCode), "dollar" => cast (164, KeyCode), "percent" => cast (165, KeyCode), "ampersand" => cast (166, KeyCode), "underscore" => cast (167, KeyCode), "openparen" => cast (168, KeyCode), "closeparen" => cast (169, KeyCode), "asterisk" => cast (170, KeyCode), "plus" => cast (171, KeyCode), "pipe" => cast (172, KeyCode), "hyphenminus" => cast (173, KeyCode), "opencurlybracket" => cast (174, KeyCode), "closecurlybracket" => cast (175, KeyCode), "tilde" => cast (176, KeyCode), "volumemute" => cast (181, KeyCode), "volumedown" => cast (182, KeyCode), "volumeup" => cast (183, KeyCode), "comma" => cast (188, KeyCode), "period" => cast (190, KeyCode), "slash" => cast (191, KeyCode), "backquote" => cast (192, KeyCode), "openbracket" => cast (219, KeyCode), "backslash" => cast (220, KeyCode), "closebracket" => cast (221, KeyCode), "quote" => cast (222, KeyCode), "meta" => cast (224, KeyCode), "altgr" => cast (225, KeyCode), "winicohelp" => cast (227, KeyCode), "winico00" => cast (228, KeyCode), "winicoclear" => cast (230, KeyCode), "winoemreset" => cast (233, KeyCode), "winoemjump" => cast (234, KeyCode), "winoempa1" => cast (235, KeyCode), "winoempa2" => cast (236, KeyCode), "winoempa3" => cast (237, KeyCode), "winoemwsctrl" => cast (238, KeyCode), "winoemcusel" => cast (239, KeyCode), "winoemattn" => cast (240, KeyCode), "winoemfinish" => cast (241, KeyCode), "winoemcopy" => cast (242, KeyCode), "winoemauto" => cast (243, KeyCode), "winoemenlw" => cast (244, KeyCode), "winoembacktab" => cast (245, KeyCode), "attn" => cast (246, KeyCode), "crsel" => cast (247, KeyCode), "exsel" => cast (248, KeyCode), "ereof" => cast (249, KeyCode), "play" => cast (250, KeyCode), "zoom" => cast (251, KeyCode), "pa1" => cast (253, KeyCode), "winoemclear" => cast (254, KeyCode)]

staticonDown:Event<KeyCode ‑> Float ‑> Void>

staticonPressed:Event<KeyCode ‑> Void>

Static methods

staticbindCombo (combo:String, listener:Void ‑> Void, timeTreshold:Float = 750):Void

staticdisable ():Void

staticinline downDuration (key:KeyCode):Float

staticenable ():Void

staticisDown (key:KeyCode, duration:Float = -1):Bool

staticunbindCombo (combo:String, listener:Void ‑> Void):Void

staticupdate (delta:Float):Void

staticinline wasPressed (key:KeyCode):Bool

staticinline wasReleased (key:KeyCode):Bool