flutter/dev/tools/gen_keycodes/data/keyboard_map_linux_cc.tmpl
Greg Spencer 289deef8c5
Add C++ code generation for key maps. (#50998)
This adds generation of some C++ keycode maps for various platforms.

This isn't meant for general use: it's so that the Flutter authors can keep the keycodes up to date with the Chromium and Android (and other) sources. It doesn't run continuously, it's only run occasionally (manually) to update the maps, because they don't change very often, and there is often manual work needed to make it function.

In this PR, I added output of various .cc files that write into an engine repo situated next to the flutter repo on disk. This is a starting point for implementing platform-side handling of key events.
2020-03-12 17:39:31 -07:00

18 lines
661 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/keyboard_maps_android_cxx.tmpl instead.
// See dev/tools/gen_keycodes/README.md for more information.
/// Maps XKB specific key code values representing [PhysicalKeyboardKey].
const std::map<int, int> g_xkb_to_physical_key = {
@@@XKB_SCAN_CODE_MAP@@@
};