gtk_key_mapping_cc.tmpl 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9
// 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.

#include "key_mapping.h"

#include <glib.h>
#include <map>

10 11
#include "flutter/shell/platform/linux/fl_key_embedder_responder_private.h"

12 13 14 15 16 17 18 19
// 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/gtk_key_mapping_cc.tmpl
// instead. See dev/tools/gen_keycodes/README.md for more information.

20
std::map<uint64_t, uint64_t> xkb_to_physical_key_map = {
21
@@@XKB_SCAN_CODE_MAP@@@
22
};
23

24
std::map<uint64_t, uint64_t> gtk_keyval_to_logical_key_map = {
25
@@@GTK_KEYVAL_CODE_MAP@@@
26
};
27 28 29 30 31 32 33 34 35 36

void initialize_modifier_bit_to_checked_keys(GHashTable* table) {
  FlKeyEmbedderCheckedKey* data;
@@@GTK_MODIFIER_BIT_MAP@@@
}

void initialize_lock_bit_to_checked_keys(GHashTable* table) {
  FlKeyEmbedderCheckedKey* data;
@@@GTK_MODE_BIT_MAP@@@
}
37

38 39 40 41
const std::vector<LayoutGoal> layout_goals = {
@@@LAYOUT_GOALS@@@
};

42
@@@MASK_CONSTANTS@@@