mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Rewrites tools/gen_keycodes, the script that generates key mappings across the framework and the engine.
27 lines
999 B
Cheetah
27 lines
999 B
Cheetah
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include <map>
|
|
|
|
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
|
|
// This file is generated by flutter/flutter@dev/tools/gen_keycodes/bin/gen_keycodes.dart and
|
|
// should not be edited directly.
|
|
//
|
|
// Edit the template dev/tools/gen_keycodes/data/ios_keyboard_map_cc.tmpl instead.
|
|
// See dev/tools/gen_keycodes/README.md for more information.
|
|
|
|
// Maps macOS-specific key code values representing [PhysicalKeyboardKey].
|
|
//
|
|
// iOS doesn't provide a scan code, but a virtual keycode to represent a physical key.
|
|
const std::map<int, int> g_ios_to_physical_key = {
|
|
@@@IOS_SCAN_CODE_MAP@@@
|
|
};
|
|
|
|
// A map of iOS key codes which have printable representations, but appear
|
|
// on the number pad. Used to provide different key objects for keys like
|
|
// KEY_EQUALS and NUMPAD_EQUALS.
|
|
const std::map<int, int> g_ios_numpad_map = {
|
|
@@@IOS_NUMPAD_MAP@@@
|
|
};
|