diff --git a/dev/tools/gen_keycodes/data/key_data.json b/dev/tools/gen_keycodes/data/key_data.json index 7aee204085..accd0d8db6 100644 --- a/dev/tools/gen_keycodes/data/key_data.json +++ b/dev/tools/gen_keycodes/data/key_data.json @@ -4703,7 +4703,9 @@ ], "english": "Meta Left", "chromium": "metaLeft", - "glfw": null + "glfw": [ + "LEFT_SUPER" + ] }, "scanCodes": { "android": [ @@ -4719,7 +4721,9 @@ "android": [ 117 ], - "glfw": null + "glfw": [ + 343 + ] } }, "controlRight": { @@ -4823,7 +4827,9 @@ ], "english": "Meta Right", "chromium": "metaRight", - "glfw": null + "glfw": [ + "RIGHT_SUPER" + ] }, "scanCodes": { "android": [ @@ -4839,7 +4845,9 @@ "android": [ 118 ], - "glfw": null + "glfw": [ + 347 + ] } }, "info": { @@ -6377,7 +6385,7 @@ 256, 288 ], - "usb": 341761, + "usb": 392961, "linux": null, "xkb": null, "windows": null, @@ -6405,7 +6413,7 @@ 257, 289 ], - "usb": 341762, + "usb": 392962, "linux": null, "xkb": null, "windows": null, @@ -6433,7 +6441,7 @@ 258, 290 ], - "usb": 341763, + "usb": 392963, "linux": null, "xkb": null, "windows": null, @@ -6461,7 +6469,7 @@ 259, 291 ], - "usb": 341764, + "usb": 392964, "linux": null, "xkb": null, "windows": null, @@ -6489,7 +6497,7 @@ 260, 292 ], - "usb": 341765, + "usb": 392965, "linux": null, "xkb": null, "windows": null, @@ -6517,7 +6525,7 @@ 261, 293 ], - "usb": 341766, + "usb": 392966, "linux": null, "xkb": null, "windows": null, @@ -6545,7 +6553,7 @@ 262, 294 ], - "usb": 341767, + "usb": 392967, "linux": null, "xkb": null, "windows": null, @@ -6573,7 +6581,7 @@ 263, 295 ], - "usb": 341768, + "usb": 392968, "linux": null, "xkb": null, "windows": null, @@ -6601,7 +6609,7 @@ 264, 296 ], - "usb": 341769, + "usb": 392969, "linux": null, "xkb": null, "windows": null, @@ -6629,7 +6637,7 @@ 265, 297 ], - "usb": 341770, + "usb": 392970, "linux": null, "xkb": null, "windows": null, @@ -6657,7 +6665,7 @@ 266, 298 ], - "usb": 341771, + "usb": 392971, "linux": null, "xkb": null, "windows": null, @@ -6685,7 +6693,7 @@ 267, 299 ], - "usb": 341772, + "usb": 392972, "linux": null, "xkb": null, "windows": null, @@ -6713,7 +6721,7 @@ 268, 300 ], - "usb": 341773, + "usb": 392973, "linux": null, "xkb": null, "windows": null, @@ -6741,7 +6749,7 @@ 269, 301 ], - "usb": 341774, + "usb": 392974, "linux": null, "xkb": null, "windows": null, @@ -6769,7 +6777,7 @@ 270, 302 ], - "usb": 341775, + "usb": 392975, "linux": null, "xkb": null, "windows": null, @@ -6797,7 +6805,7 @@ 271, 303 ], - "usb": 341776, + "usb": 392976, "linux": null, "xkb": null, "windows": null, @@ -6824,7 +6832,7 @@ "android": [ 304 ], - "usb": 341777, + "usb": 392977, "linux": null, "xkb": null, "windows": null, @@ -6851,7 +6859,7 @@ "android": [ 305 ], - "usb": 341778, + "usb": 392978, "linux": null, "xkb": null, "windows": null, @@ -6878,7 +6886,7 @@ "android": [ 306 ], - "usb": 341779, + "usb": 392979, "linux": null, "xkb": null, "windows": null, @@ -6905,7 +6913,7 @@ "android": [ 310 ], - "usb": 341780, + "usb": 392980, "linux": null, "xkb": null, "windows": null, @@ -6932,7 +6940,7 @@ "android": [ 312 ], - "usb": 341781, + "usb": 392981, "linux": null, "xkb": null, "windows": null, @@ -6959,7 +6967,7 @@ "android": [ 316 ], - "usb": 341782, + "usb": 392982, "linux": null, "xkb": null, "windows": null, @@ -6986,7 +6994,7 @@ "android": [ 311 ], - "usb": 341783, + "usb": 392983, "linux": null, "xkb": null, "windows": null, @@ -7013,7 +7021,7 @@ "android": [ 313 ], - "usb": 341784, + "usb": 392984, "linux": null, "xkb": null, "windows": null, @@ -7040,7 +7048,7 @@ "android": [ 314 ], - "usb": 341785, + "usb": 392985, "linux": null, "xkb": null, "windows": null, @@ -7067,7 +7075,7 @@ "android": [ 315 ], - "usb": 341786, + "usb": 392986, "linux": null, "xkb": null, "windows": null, @@ -7094,7 +7102,7 @@ "android": [ 317 ], - "usb": 341787, + "usb": 392987, "linux": null, "xkb": null, "windows": null, @@ -7121,7 +7129,7 @@ "android": [ 318 ], - "usb": 341788, + "usb": 392988, "linux": null, "xkb": null, "windows": null, @@ -7148,7 +7156,7 @@ "android": [ 307 ], - "usb": 341789, + "usb": 392989, "linux": null, "xkb": null, "windows": null, @@ -7175,7 +7183,7 @@ "android": [ 308 ], - "usb": 341790, + "usb": 392990, "linux": null, "xkb": null, "windows": null, @@ -7202,7 +7210,7 @@ "android": [ 309 ], - "usb": 341791, + "usb": 392991, "linux": null, "xkb": null, "windows": null, diff --git a/dev/tools/gen_keycodes/data/key_name_to_glfw_name.json b/dev/tools/gen_keycodes/data/key_name_to_glfw_name.json index a1e435d256..aac18137c4 100644 --- a/dev/tools/gen_keycodes/data/key_name_to_glfw_name.json +++ b/dev/tools/gen_keycodes/data/key_name_to_glfw_name.json @@ -11,10 +11,10 @@ "bracketLeft": ["LEFT_BRACKET"], "bracketRight": ["RIGHT_BRACKET"], "capsLock": ["CAPS_LOCK"], + "comma": ["COMMA"], + "contextMenu": ["MENU"], "controlLeft": ["LEFT_CONTROL"], "controlRight": ["RIGHT_CONTROL"], - "contextMenu": ["MENU"], - "comma": ["COMMA"], "delete": ["DELETE"], "digit0": ["0"], "digit1": ["1"], @@ -82,6 +82,8 @@ "keyX": ["X"], "keyY": ["Y"], "keyZ": ["Z"], + "metaLeft": ["LEFT_SUPER"], + "metaRight": ["RIGHT_SUPER"], "minus": ["MINUS"], "numLock": ["NUM_LOCK"], "numpad0": ["KP_0"], @@ -94,23 +96,23 @@ "numpad7": ["KP_7"], "numpad8": ["KP_8"], "numpad9": ["KP_9"], + "numpadAdd": ["KP_ADD"], "numpadDecimal": ["KP_DECIMAL"], "numpadDivide": ["KP_DIVIDE"], - "numpadMultiply": ["KP_MULTIPLY"], - "numpadSubtract": ["NUMPAD_SUBTRACT"], - "numpadAdd": ["KP_ADD"], "numpadEnter": ["KP_ENTER"], "numpadEqual": ["KP_EQUAL"], + "numpadMultiply": ["KP_MULTIPLY"], + "numpadSubtract": ["NUMPAD_SUBTRACT"], "pageDown": ["PAGE_DOWN"], "pageUp": ["PAGE_UP"], "pause": ["PAUSE"], + "period": ["PERIOD"], "printScreen": ["PRINT_SCREEN"], "quote": ["APOSTROPHE"], - "period": ["PERIOD"], "semicolon": ["SEMICOLON"], - "slash": ["SLASH"], - "space": ["SPACE"], "shiftLeft": ["LEFT_SHIFT"], "shiftRight": ["RIGHT_SHIFT"], + "slash": ["SLASH"], + "space": ["SPACE"], "tab": ["TAB"] } diff --git a/dev/tools/gen_keycodes/lib/key_data.dart b/dev/tools/gen_keycodes/lib/key_data.dart index 95304a1aca..ced5fb0e4f 100644 --- a/dev/tools/gen_keycodes/lib/key_data.dart +++ b/dev/tools/gen_keycodes/lib/key_data.dart @@ -27,7 +27,7 @@ class KeyData { String androidKeyCodeHeader, String androidNameMap, String glfwKeyCodeHeader, - String glfwNameMap + String glfwNameMap, ) : assert(chromiumHidCodes != null), assert(androidKeyboardLayout != null), assert(androidKeyCodeHeader != null), diff --git a/packages/flutter/lib/src/services/keyboard_key.dart b/packages/flutter/lib/src/services/keyboard_key.dart index 0f88afbd99..57465b3a5f 100644 --- a/packages/flutter/lib/src/services/keyboard_key.dart +++ b/packages/flutter/lib/src/services/keyboard_key.dart @@ -1458,157 +1458,157 @@ class LogicalKeyboardKey extends KeyboardKey { /// Represents the logical "Game Button 1" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton1 = LogicalKeyboardKey(0x00100053701, debugName: kReleaseMode ? null : 'Game Button 1'); + static const LogicalKeyboardKey gameButton1 = LogicalKeyboardKey(0x0010005ff01, debugName: kReleaseMode ? null : 'Game Button 1'); /// Represents the logical "Game Button 2" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton2 = LogicalKeyboardKey(0x00100053702, debugName: kReleaseMode ? null : 'Game Button 2'); + static const LogicalKeyboardKey gameButton2 = LogicalKeyboardKey(0x0010005ff02, debugName: kReleaseMode ? null : 'Game Button 2'); /// Represents the logical "Game Button 3" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton3 = LogicalKeyboardKey(0x00100053703, debugName: kReleaseMode ? null : 'Game Button 3'); + static const LogicalKeyboardKey gameButton3 = LogicalKeyboardKey(0x0010005ff03, debugName: kReleaseMode ? null : 'Game Button 3'); /// Represents the logical "Game Button 4" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton4 = LogicalKeyboardKey(0x00100053704, debugName: kReleaseMode ? null : 'Game Button 4'); + static const LogicalKeyboardKey gameButton4 = LogicalKeyboardKey(0x0010005ff04, debugName: kReleaseMode ? null : 'Game Button 4'); /// Represents the logical "Game Button 5" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton5 = LogicalKeyboardKey(0x00100053705, debugName: kReleaseMode ? null : 'Game Button 5'); + static const LogicalKeyboardKey gameButton5 = LogicalKeyboardKey(0x0010005ff05, debugName: kReleaseMode ? null : 'Game Button 5'); /// Represents the logical "Game Button 6" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton6 = LogicalKeyboardKey(0x00100053706, debugName: kReleaseMode ? null : 'Game Button 6'); + static const LogicalKeyboardKey gameButton6 = LogicalKeyboardKey(0x0010005ff06, debugName: kReleaseMode ? null : 'Game Button 6'); /// Represents the logical "Game Button 7" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton7 = LogicalKeyboardKey(0x00100053707, debugName: kReleaseMode ? null : 'Game Button 7'); + static const LogicalKeyboardKey gameButton7 = LogicalKeyboardKey(0x0010005ff07, debugName: kReleaseMode ? null : 'Game Button 7'); /// Represents the logical "Game Button 8" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton8 = LogicalKeyboardKey(0x00100053708, debugName: kReleaseMode ? null : 'Game Button 8'); + static const LogicalKeyboardKey gameButton8 = LogicalKeyboardKey(0x0010005ff08, debugName: kReleaseMode ? null : 'Game Button 8'); /// Represents the logical "Game Button 9" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton9 = LogicalKeyboardKey(0x00100053709, debugName: kReleaseMode ? null : 'Game Button 9'); + static const LogicalKeyboardKey gameButton9 = LogicalKeyboardKey(0x0010005ff09, debugName: kReleaseMode ? null : 'Game Button 9'); /// Represents the logical "Game Button 10" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton10 = LogicalKeyboardKey(0x0010005370a, debugName: kReleaseMode ? null : 'Game Button 10'); + static const LogicalKeyboardKey gameButton10 = LogicalKeyboardKey(0x0010005ff0a, debugName: kReleaseMode ? null : 'Game Button 10'); /// Represents the logical "Game Button 11" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton11 = LogicalKeyboardKey(0x0010005370b, debugName: kReleaseMode ? null : 'Game Button 11'); + static const LogicalKeyboardKey gameButton11 = LogicalKeyboardKey(0x0010005ff0b, debugName: kReleaseMode ? null : 'Game Button 11'); /// Represents the logical "Game Button 12" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton12 = LogicalKeyboardKey(0x0010005370c, debugName: kReleaseMode ? null : 'Game Button 12'); + static const LogicalKeyboardKey gameButton12 = LogicalKeyboardKey(0x0010005ff0c, debugName: kReleaseMode ? null : 'Game Button 12'); /// Represents the logical "Game Button 13" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton13 = LogicalKeyboardKey(0x0010005370d, debugName: kReleaseMode ? null : 'Game Button 13'); + static const LogicalKeyboardKey gameButton13 = LogicalKeyboardKey(0x0010005ff0d, debugName: kReleaseMode ? null : 'Game Button 13'); /// Represents the logical "Game Button 14" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton14 = LogicalKeyboardKey(0x0010005370e, debugName: kReleaseMode ? null : 'Game Button 14'); + static const LogicalKeyboardKey gameButton14 = LogicalKeyboardKey(0x0010005ff0e, debugName: kReleaseMode ? null : 'Game Button 14'); /// Represents the logical "Game Button 15" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton15 = LogicalKeyboardKey(0x0010005370f, debugName: kReleaseMode ? null : 'Game Button 15'); + static const LogicalKeyboardKey gameButton15 = LogicalKeyboardKey(0x0010005ff0f, debugName: kReleaseMode ? null : 'Game Button 15'); /// Represents the logical "Game Button 16" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButton16 = LogicalKeyboardKey(0x00100053710, debugName: kReleaseMode ? null : 'Game Button 16'); + static const LogicalKeyboardKey gameButton16 = LogicalKeyboardKey(0x0010005ff10, debugName: kReleaseMode ? null : 'Game Button 16'); /// Represents the logical "Game Button A" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonA = LogicalKeyboardKey(0x00100053711, debugName: kReleaseMode ? null : 'Game Button A'); + static const LogicalKeyboardKey gameButtonA = LogicalKeyboardKey(0x0010005ff11, debugName: kReleaseMode ? null : 'Game Button A'); /// Represents the logical "Game Button B" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonB = LogicalKeyboardKey(0x00100053712, debugName: kReleaseMode ? null : 'Game Button B'); + static const LogicalKeyboardKey gameButtonB = LogicalKeyboardKey(0x0010005ff12, debugName: kReleaseMode ? null : 'Game Button B'); /// Represents the logical "Game Button C" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonC = LogicalKeyboardKey(0x00100053713, debugName: kReleaseMode ? null : 'Game Button C'); + static const LogicalKeyboardKey gameButtonC = LogicalKeyboardKey(0x0010005ff13, debugName: kReleaseMode ? null : 'Game Button C'); /// Represents the logical "Game Button Left 1" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonLeft1 = LogicalKeyboardKey(0x00100053714, debugName: kReleaseMode ? null : 'Game Button Left 1'); + static const LogicalKeyboardKey gameButtonLeft1 = LogicalKeyboardKey(0x0010005ff14, debugName: kReleaseMode ? null : 'Game Button Left 1'); /// Represents the logical "Game Button Left 2" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonLeft2 = LogicalKeyboardKey(0x00100053715, debugName: kReleaseMode ? null : 'Game Button Left 2'); + static const LogicalKeyboardKey gameButtonLeft2 = LogicalKeyboardKey(0x0010005ff15, debugName: kReleaseMode ? null : 'Game Button Left 2'); /// Represents the logical "Game Button Mode" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonMode = LogicalKeyboardKey(0x00100053716, debugName: kReleaseMode ? null : 'Game Button Mode'); + static const LogicalKeyboardKey gameButtonMode = LogicalKeyboardKey(0x0010005ff16, debugName: kReleaseMode ? null : 'Game Button Mode'); /// Represents the logical "Game Button Right 1" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonRight1 = LogicalKeyboardKey(0x00100053717, debugName: kReleaseMode ? null : 'Game Button Right 1'); + static const LogicalKeyboardKey gameButtonRight1 = LogicalKeyboardKey(0x0010005ff17, debugName: kReleaseMode ? null : 'Game Button Right 1'); /// Represents the logical "Game Button Right 2" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonRight2 = LogicalKeyboardKey(0x00100053718, debugName: kReleaseMode ? null : 'Game Button Right 2'); + static const LogicalKeyboardKey gameButtonRight2 = LogicalKeyboardKey(0x0010005ff18, debugName: kReleaseMode ? null : 'Game Button Right 2'); /// Represents the logical "Game Button Select" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonSelect = LogicalKeyboardKey(0x00100053719, debugName: kReleaseMode ? null : 'Game Button Select'); + static const LogicalKeyboardKey gameButtonSelect = LogicalKeyboardKey(0x0010005ff19, debugName: kReleaseMode ? null : 'Game Button Select'); /// Represents the logical "Game Button Start" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonStart = LogicalKeyboardKey(0x0010005371a, debugName: kReleaseMode ? null : 'Game Button Start'); + static const LogicalKeyboardKey gameButtonStart = LogicalKeyboardKey(0x0010005ff1a, debugName: kReleaseMode ? null : 'Game Button Start'); /// Represents the logical "Game Button Thumb Left" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonThumbLeft = LogicalKeyboardKey(0x0010005371b, debugName: kReleaseMode ? null : 'Game Button Thumb Left'); + static const LogicalKeyboardKey gameButtonThumbLeft = LogicalKeyboardKey(0x0010005ff1b, debugName: kReleaseMode ? null : 'Game Button Thumb Left'); /// Represents the logical "Game Button Thumb Right" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonThumbRight = LogicalKeyboardKey(0x0010005371c, debugName: kReleaseMode ? null : 'Game Button Thumb Right'); + static const LogicalKeyboardKey gameButtonThumbRight = LogicalKeyboardKey(0x0010005ff1c, debugName: kReleaseMode ? null : 'Game Button Thumb Right'); /// Represents the logical "Game Button X" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonX = LogicalKeyboardKey(0x0010005371d, debugName: kReleaseMode ? null : 'Game Button X'); + static const LogicalKeyboardKey gameButtonX = LogicalKeyboardKey(0x0010005ff1d, debugName: kReleaseMode ? null : 'Game Button X'); /// Represents the logical "Game Button Y" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonY = LogicalKeyboardKey(0x0010005371e, debugName: kReleaseMode ? null : 'Game Button Y'); + static const LogicalKeyboardKey gameButtonY = LogicalKeyboardKey(0x0010005ff1e, debugName: kReleaseMode ? null : 'Game Button Y'); /// Represents the logical "Game Button Z" key on the keyboard. /// /// See the function [RawKeyEvent.logicalKey] for more information. - static const LogicalKeyboardKey gameButtonZ = LogicalKeyboardKey(0x0010005371f, debugName: kReleaseMode ? null : 'Game Button Z'); + static const LogicalKeyboardKey gameButtonZ = LogicalKeyboardKey(0x0010005ff1f, debugName: kReleaseMode ? null : 'Game Button Z'); /// Represents the logical "Shift" key on the keyboard. /// @@ -1875,37 +1875,37 @@ class LogicalKeyboardKey extends KeyboardKey { 0x01000c028c: mailSend, 0x01000c029d: keyboardLayoutSelect, 0x01000c029f: showAllWindows, - 0x0100053701: gameButton1, - 0x0100053702: gameButton2, - 0x0100053703: gameButton3, - 0x0100053704: gameButton4, - 0x0100053705: gameButton5, - 0x0100053706: gameButton6, - 0x0100053707: gameButton7, - 0x0100053708: gameButton8, - 0x0100053709: gameButton9, - 0x010005370a: gameButton10, - 0x010005370b: gameButton11, - 0x010005370c: gameButton12, - 0x010005370d: gameButton13, - 0x010005370e: gameButton14, - 0x010005370f: gameButton15, - 0x0100053710: gameButton16, - 0x0100053711: gameButtonA, - 0x0100053712: gameButtonB, - 0x0100053713: gameButtonC, - 0x0100053714: gameButtonLeft1, - 0x0100053715: gameButtonLeft2, - 0x0100053716: gameButtonMode, - 0x0100053717: gameButtonRight1, - 0x0100053718: gameButtonRight2, - 0x0100053719: gameButtonSelect, - 0x010005371a: gameButtonStart, - 0x010005371b: gameButtonThumbLeft, - 0x010005371c: gameButtonThumbRight, - 0x010005371d: gameButtonX, - 0x010005371e: gameButtonY, - 0x010005371f: gameButtonZ, + 0x010005ff01: gameButton1, + 0x010005ff02: gameButton2, + 0x010005ff03: gameButton3, + 0x010005ff04: gameButton4, + 0x010005ff05: gameButton5, + 0x010005ff06: gameButton6, + 0x010005ff07: gameButton7, + 0x010005ff08: gameButton8, + 0x010005ff09: gameButton9, + 0x010005ff0a: gameButton10, + 0x010005ff0b: gameButton11, + 0x010005ff0c: gameButton12, + 0x010005ff0d: gameButton13, + 0x010005ff0e: gameButton14, + 0x010005ff0f: gameButton15, + 0x010005ff10: gameButton16, + 0x010005ff11: gameButtonA, + 0x010005ff12: gameButtonB, + 0x010005ff13: gameButtonC, + 0x010005ff14: gameButtonLeft1, + 0x010005ff15: gameButtonLeft2, + 0x010005ff16: gameButtonMode, + 0x010005ff17: gameButtonRight1, + 0x010005ff18: gameButtonRight2, + 0x010005ff19: gameButtonSelect, + 0x010005ff1a: gameButtonStart, + 0x010005ff1b: gameButtonThumbLeft, + 0x010005ff1c: gameButtonThumbRight, + 0x010005ff1d: gameButtonX, + 0x010005ff1e: gameButtonY, + 0x010005ff1f: gameButtonZ, 0x201000700e1: shift, 0x201000700e3: meta, 0x201000700e2: alt, @@ -3329,187 +3329,187 @@ class PhysicalKeyboardKey extends KeyboardKey { /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton1 = PhysicalKeyboardKey(0x00053701, debugName: kReleaseMode ? null : 'Game Button 1'); + static const PhysicalKeyboardKey gameButton1 = PhysicalKeyboardKey(0x0005ff01, debugName: kReleaseMode ? null : 'Game Button 1'); /// Represents the location of the "Game Button 2" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton2 = PhysicalKeyboardKey(0x00053702, debugName: kReleaseMode ? null : 'Game Button 2'); + static const PhysicalKeyboardKey gameButton2 = PhysicalKeyboardKey(0x0005ff02, debugName: kReleaseMode ? null : 'Game Button 2'); /// Represents the location of the "Game Button 3" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton3 = PhysicalKeyboardKey(0x00053703, debugName: kReleaseMode ? null : 'Game Button 3'); + static const PhysicalKeyboardKey gameButton3 = PhysicalKeyboardKey(0x0005ff03, debugName: kReleaseMode ? null : 'Game Button 3'); /// Represents the location of the "Game Button 4" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton4 = PhysicalKeyboardKey(0x00053704, debugName: kReleaseMode ? null : 'Game Button 4'); + static const PhysicalKeyboardKey gameButton4 = PhysicalKeyboardKey(0x0005ff04, debugName: kReleaseMode ? null : 'Game Button 4'); /// Represents the location of the "Game Button 5" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton5 = PhysicalKeyboardKey(0x00053705, debugName: kReleaseMode ? null : 'Game Button 5'); + static const PhysicalKeyboardKey gameButton5 = PhysicalKeyboardKey(0x0005ff05, debugName: kReleaseMode ? null : 'Game Button 5'); /// Represents the location of the "Game Button 6" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton6 = PhysicalKeyboardKey(0x00053706, debugName: kReleaseMode ? null : 'Game Button 6'); + static const PhysicalKeyboardKey gameButton6 = PhysicalKeyboardKey(0x0005ff06, debugName: kReleaseMode ? null : 'Game Button 6'); /// Represents the location of the "Game Button 7" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton7 = PhysicalKeyboardKey(0x00053707, debugName: kReleaseMode ? null : 'Game Button 7'); + static const PhysicalKeyboardKey gameButton7 = PhysicalKeyboardKey(0x0005ff07, debugName: kReleaseMode ? null : 'Game Button 7'); /// Represents the location of the "Game Button 8" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton8 = PhysicalKeyboardKey(0x00053708, debugName: kReleaseMode ? null : 'Game Button 8'); + static const PhysicalKeyboardKey gameButton8 = PhysicalKeyboardKey(0x0005ff08, debugName: kReleaseMode ? null : 'Game Button 8'); /// Represents the location of the "Game Button 9" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton9 = PhysicalKeyboardKey(0x00053709, debugName: kReleaseMode ? null : 'Game Button 9'); + static const PhysicalKeyboardKey gameButton9 = PhysicalKeyboardKey(0x0005ff09, debugName: kReleaseMode ? null : 'Game Button 9'); /// Represents the location of the "Game Button 10" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton10 = PhysicalKeyboardKey(0x0005370a, debugName: kReleaseMode ? null : 'Game Button 10'); + static const PhysicalKeyboardKey gameButton10 = PhysicalKeyboardKey(0x0005ff0a, debugName: kReleaseMode ? null : 'Game Button 10'); /// Represents the location of the "Game Button 11" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton11 = PhysicalKeyboardKey(0x0005370b, debugName: kReleaseMode ? null : 'Game Button 11'); + static const PhysicalKeyboardKey gameButton11 = PhysicalKeyboardKey(0x0005ff0b, debugName: kReleaseMode ? null : 'Game Button 11'); /// Represents the location of the "Game Button 12" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton12 = PhysicalKeyboardKey(0x0005370c, debugName: kReleaseMode ? null : 'Game Button 12'); + static const PhysicalKeyboardKey gameButton12 = PhysicalKeyboardKey(0x0005ff0c, debugName: kReleaseMode ? null : 'Game Button 12'); /// Represents the location of the "Game Button 13" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton13 = PhysicalKeyboardKey(0x0005370d, debugName: kReleaseMode ? null : 'Game Button 13'); + static const PhysicalKeyboardKey gameButton13 = PhysicalKeyboardKey(0x0005ff0d, debugName: kReleaseMode ? null : 'Game Button 13'); /// Represents the location of the "Game Button 14" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton14 = PhysicalKeyboardKey(0x0005370e, debugName: kReleaseMode ? null : 'Game Button 14'); + static const PhysicalKeyboardKey gameButton14 = PhysicalKeyboardKey(0x0005ff0e, debugName: kReleaseMode ? null : 'Game Button 14'); /// Represents the location of the "Game Button 15" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton15 = PhysicalKeyboardKey(0x0005370f, debugName: kReleaseMode ? null : 'Game Button 15'); + static const PhysicalKeyboardKey gameButton15 = PhysicalKeyboardKey(0x0005ff0f, debugName: kReleaseMode ? null : 'Game Button 15'); /// Represents the location of the "Game Button 16" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButton16 = PhysicalKeyboardKey(0x00053710, debugName: kReleaseMode ? null : 'Game Button 16'); + static const PhysicalKeyboardKey gameButton16 = PhysicalKeyboardKey(0x0005ff10, debugName: kReleaseMode ? null : 'Game Button 16'); /// Represents the location of the "Game Button A" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonA = PhysicalKeyboardKey(0x00053711, debugName: kReleaseMode ? null : 'Game Button A'); + static const PhysicalKeyboardKey gameButtonA = PhysicalKeyboardKey(0x0005ff11, debugName: kReleaseMode ? null : 'Game Button A'); /// Represents the location of the "Game Button B" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonB = PhysicalKeyboardKey(0x00053712, debugName: kReleaseMode ? null : 'Game Button B'); + static const PhysicalKeyboardKey gameButtonB = PhysicalKeyboardKey(0x0005ff12, debugName: kReleaseMode ? null : 'Game Button B'); /// Represents the location of the "Game Button C" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonC = PhysicalKeyboardKey(0x00053713, debugName: kReleaseMode ? null : 'Game Button C'); + static const PhysicalKeyboardKey gameButtonC = PhysicalKeyboardKey(0x0005ff13, debugName: kReleaseMode ? null : 'Game Button C'); /// Represents the location of the "Game Button Left 1" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonLeft1 = PhysicalKeyboardKey(0x00053714, debugName: kReleaseMode ? null : 'Game Button Left 1'); + static const PhysicalKeyboardKey gameButtonLeft1 = PhysicalKeyboardKey(0x0005ff14, debugName: kReleaseMode ? null : 'Game Button Left 1'); /// Represents the location of the "Game Button Left 2" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonLeft2 = PhysicalKeyboardKey(0x00053715, debugName: kReleaseMode ? null : 'Game Button Left 2'); + static const PhysicalKeyboardKey gameButtonLeft2 = PhysicalKeyboardKey(0x0005ff15, debugName: kReleaseMode ? null : 'Game Button Left 2'); /// Represents the location of the "Game Button Mode" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonMode = PhysicalKeyboardKey(0x00053716, debugName: kReleaseMode ? null : 'Game Button Mode'); + static const PhysicalKeyboardKey gameButtonMode = PhysicalKeyboardKey(0x0005ff16, debugName: kReleaseMode ? null : 'Game Button Mode'); /// Represents the location of the "Game Button Right 1" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonRight1 = PhysicalKeyboardKey(0x00053717, debugName: kReleaseMode ? null : 'Game Button Right 1'); + static const PhysicalKeyboardKey gameButtonRight1 = PhysicalKeyboardKey(0x0005ff17, debugName: kReleaseMode ? null : 'Game Button Right 1'); /// Represents the location of the "Game Button Right 2" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonRight2 = PhysicalKeyboardKey(0x00053718, debugName: kReleaseMode ? null : 'Game Button Right 2'); + static const PhysicalKeyboardKey gameButtonRight2 = PhysicalKeyboardKey(0x0005ff18, debugName: kReleaseMode ? null : 'Game Button Right 2'); /// Represents the location of the "Game Button Select" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonSelect = PhysicalKeyboardKey(0x00053719, debugName: kReleaseMode ? null : 'Game Button Select'); + static const PhysicalKeyboardKey gameButtonSelect = PhysicalKeyboardKey(0x0005ff19, debugName: kReleaseMode ? null : 'Game Button Select'); /// Represents the location of the "Game Button Start" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonStart = PhysicalKeyboardKey(0x0005371a, debugName: kReleaseMode ? null : 'Game Button Start'); + static const PhysicalKeyboardKey gameButtonStart = PhysicalKeyboardKey(0x0005ff1a, debugName: kReleaseMode ? null : 'Game Button Start'); /// Represents the location of the "Game Button Thumb Left" key on a /// generalized keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonThumbLeft = PhysicalKeyboardKey(0x0005371b, debugName: kReleaseMode ? null : 'Game Button Thumb Left'); + static const PhysicalKeyboardKey gameButtonThumbLeft = PhysicalKeyboardKey(0x0005ff1b, debugName: kReleaseMode ? null : 'Game Button Thumb Left'); /// Represents the location of the "Game Button Thumb Right" key on a /// generalized keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonThumbRight = PhysicalKeyboardKey(0x0005371c, debugName: kReleaseMode ? null : 'Game Button Thumb Right'); + static const PhysicalKeyboardKey gameButtonThumbRight = PhysicalKeyboardKey(0x0005ff1c, debugName: kReleaseMode ? null : 'Game Button Thumb Right'); /// Represents the location of the "Game Button X" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonX = PhysicalKeyboardKey(0x0005371d, debugName: kReleaseMode ? null : 'Game Button X'); + static const PhysicalKeyboardKey gameButtonX = PhysicalKeyboardKey(0x0005ff1d, debugName: kReleaseMode ? null : 'Game Button X'); /// Represents the location of the "Game Button Y" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonY = PhysicalKeyboardKey(0x0005371e, debugName: kReleaseMode ? null : 'Game Button Y'); + static const PhysicalKeyboardKey gameButtonY = PhysicalKeyboardKey(0x0005ff1e, debugName: kReleaseMode ? null : 'Game Button Y'); /// Represents the location of the "Game Button Z" key on a generalized /// keyboard. /// /// See the function [RawKeyEvent.physicalKey] for more information. - static const PhysicalKeyboardKey gameButtonZ = PhysicalKeyboardKey(0x0005371f, debugName: kReleaseMode ? null : 'Game Button Z'); + static const PhysicalKeyboardKey gameButtonZ = PhysicalKeyboardKey(0x0005ff1f, debugName: kReleaseMode ? null : 'Game Button Z'); // A list of all the predefined constant PhysicalKeyboardKeys so that they // can be searched. @@ -3748,36 +3748,36 @@ class PhysicalKeyboardKey extends KeyboardKey { 0x000c028c: mailSend, 0x000c029d: keyboardLayoutSelect, 0x000c029f: showAllWindows, - 0x00053701: gameButton1, - 0x00053702: gameButton2, - 0x00053703: gameButton3, - 0x00053704: gameButton4, - 0x00053705: gameButton5, - 0x00053706: gameButton6, - 0x00053707: gameButton7, - 0x00053708: gameButton8, - 0x00053709: gameButton9, - 0x0005370a: gameButton10, - 0x0005370b: gameButton11, - 0x0005370c: gameButton12, - 0x0005370d: gameButton13, - 0x0005370e: gameButton14, - 0x0005370f: gameButton15, - 0x00053710: gameButton16, - 0x00053711: gameButtonA, - 0x00053712: gameButtonB, - 0x00053713: gameButtonC, - 0x00053714: gameButtonLeft1, - 0x00053715: gameButtonLeft2, - 0x00053716: gameButtonMode, - 0x00053717: gameButtonRight1, - 0x00053718: gameButtonRight2, - 0x00053719: gameButtonSelect, - 0x0005371a: gameButtonStart, - 0x0005371b: gameButtonThumbLeft, - 0x0005371c: gameButtonThumbRight, - 0x0005371d: gameButtonX, - 0x0005371e: gameButtonY, - 0x0005371f: gameButtonZ, + 0x0005ff01: gameButton1, + 0x0005ff02: gameButton2, + 0x0005ff03: gameButton3, + 0x0005ff04: gameButton4, + 0x0005ff05: gameButton5, + 0x0005ff06: gameButton6, + 0x0005ff07: gameButton7, + 0x0005ff08: gameButton8, + 0x0005ff09: gameButton9, + 0x0005ff0a: gameButton10, + 0x0005ff0b: gameButton11, + 0x0005ff0c: gameButton12, + 0x0005ff0d: gameButton13, + 0x0005ff0e: gameButton14, + 0x0005ff0f: gameButton15, + 0x0005ff10: gameButton16, + 0x0005ff11: gameButtonA, + 0x0005ff12: gameButtonB, + 0x0005ff13: gameButtonC, + 0x0005ff14: gameButtonLeft1, + 0x0005ff15: gameButtonLeft2, + 0x0005ff16: gameButtonMode, + 0x0005ff17: gameButtonRight1, + 0x0005ff18: gameButtonRight2, + 0x0005ff19: gameButtonSelect, + 0x0005ff1a: gameButtonStart, + 0x0005ff1b: gameButtonThumbLeft, + 0x0005ff1c: gameButtonThumbRight, + 0x0005ff1d: gameButtonX, + 0x0005ff1e: gameButtonY, + 0x0005ff1f: gameButtonZ, }; } diff --git a/packages/flutter/lib/src/services/keyboard_maps.dart b/packages/flutter/lib/src/services/keyboard_maps.dart index d5b3cb50f2..dd815542b5 100644 --- a/packages/flutter/lib/src/services/keyboard_maps.dart +++ b/packages/flutter/lib/src/services/keyboard_maps.dart @@ -688,37 +688,37 @@ const Map kFuchsiaToLogicalKey = kFuchsiaToPhysicalKey = kGlfwToLogicalKey = 341: LogicalKeyboardKey.controlLeft, 340: LogicalKeyboardKey.shiftLeft, 342: LogicalKeyboardKey.altLeft, + 343: LogicalKeyboardKey.metaLeft, 345: LogicalKeyboardKey.controlRight, 344: LogicalKeyboardKey.shiftRight, 346: LogicalKeyboardKey.altRight, + 347: LogicalKeyboardKey.metaRight, }; /// A map of GLFW key codes which have printable representations, but appear