macos_key_code_map_cc.tmpl 1.09 KB
Newer Older
1 2 3 4 5 6
// 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.

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
7
#include "./KeyCodeMap_Internal.h"
8 9

// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
10 11 12
// This file is generated by
// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not
// be edited directly.
13
//
14 15 16 17 18
// Edit the template
// flutter/flutter:dev/tools/gen_keycodes/data/keyboard_map_macos_cc.tmpl
// instead.
//
// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information.
19

20 21
namespace flutter {

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
@@@MASK_CONSTANTS@@@

const NSDictionary* keyCodeToPhysicalKey = @{
@@@MACOS_SCAN_CODE_MAP@@@
};

const NSDictionary* keyCodeToLogicalKey = @{
@@@MACOS_KEYCODE_LOGICAL_MAP@@@
};

const NSDictionary* keyCodeToModifierFlag = @{
@@@KEYCODE_TO_MODIFIER_FLAG_MAP@@@
};

const NSDictionary* modifierFlagToKeyCode = @{
@@@MODIFIER_FLAG_TO_KEYCODE_MAP@@@
};

@@@SPECIAL_KEY_CONSTANTS@@@
41 42 43 44 45 46

const std::vector<LayoutGoal> layoutGoals = {
@@@LAYOUT_GOALS@@@
};

}  // namespace flutter