windows_flutter_key_map_cc.tmpl 1.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
// Copyright 2013 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.

#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_KEY_MAP_H_
#define FLUTTER_SHELL_PLATFORM_WINDOWS_FLUTTER_KEY_MAP_H_

#include "flutter/shell/platform/windows/keyboard_key_embedder_handler.h"

#include <map>

// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
// This file is generated by
14
// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not
15 16
// be edited directly.
//
17 18 19 20 21
// Edit the template
// flutter/flutter:dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl
// instead.
//
// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

namespace flutter {

std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::windowsToPhysicalMap_ =
    {
@@@WINDOWS_SCAN_CODE_MAP@@@
};

std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::windowsToLogicalMap_ =
    {
@@@WINDOWS_KEY_CODE_MAP@@@
};

std::map<uint64_t, uint64_t> KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_ =
    {
@@@WINDOWS_SCAN_CODE_TO_LOGICAL_MAP@@@
};

40 41
@@@MASK_CONSTANTS@@@

42 43 44
}  // namespace flutter

#endif