1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_IOS_KEY_MAP_US_H_
6 #define REMOTING_IOS_KEY_MAP_US_H_
8 // A mapping for the US keyboard on a US IPAD to Chromoting Scancodes
10 // This must be less than or equal to the size of
11 // kIsShiftRequiredUS and kKeyCodeUS.
12 const int kKeyboardKeyMaxUS
= 126;
14 // Index for specific keys
15 const uint32_t kShiftIndex
= 128;
16 const uint32_t kBackspaceIndex
= 129;
17 const uint32_t kCtrlIndex
= 130;
18 const uint32_t kAltIndex
= 131;
19 const uint32_t kDelIndex
= 132;
21 const BOOL kIsShiftRequiredUS
[] = {
22 NO
, // [0] Numbering fields by index, not by count
152 const uint32_t kKeyCodeUS
[] = {
153 0, // [0] Numbering fields by index, not by count
163 0x070028, // [10] ENTER
245 0x070031, // BACKSLASH
282 0x07002a, // BACKSPACE
288 #endif // REMOTING_IOS_KEY_MAP_US_H_