Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: remoting/ios/key_map_us.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Update based on feedback. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/ios/key_input_unittest.mm ('k') | remoting/ios/session/remoting_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef REMOTING_IOS_KEY_MAP_US_H_
6 #define REMOTING_IOS_KEY_MAP_US_H_
7
8 // A mapping for the US keyboard on a US IPAD to Chromoting Scancodes.
9
10 const int kKeyboardKeyMaxUS = 126;
11
12 // Index for specific keys
13 const uint32_t kShiftIndex = 128;
14 const uint32_t kBackspaceIndex = 129;
15 const uint32_t kCtrlIndex = 130;
16 const uint32_t kAltIndex = 131;
17 const uint32_t kDelIndex = 132;
18
19 struct KeyCodeMeta {
20 uint32_t code;
21 BOOL needsShift;
22 };
23
24 const KeyCodeMeta kKeyCodeMetaUS[] = {
25 {0, NO}, // [0] Numbering fields by index, not by count
26 {0, NO}, //
27 {0, NO}, //
28 {0, NO}, //
29 {0, NO}, //
30 {0, NO}, //
31 {0, NO}, //
32 {0, NO}, //
33 {0, NO}, //
34 {0, NO}, //
35 {0x070028, NO}, // [10] ENTER
36 {0, NO}, //
37 {0, NO}, //
38 {0, NO}, //
39 {0, NO}, //
40 {0, NO}, //
41 {0, NO}, //
42 {0, NO}, //
43 {0, NO}, //
44 {0, NO}, //
45 {0, NO}, // [20]
46 {0, NO}, //
47 {0, NO}, //
48 {0, NO}, //
49 {0, NO}, //
50 {0, NO}, //
51 {0, NO}, //
52 {0, NO}, //
53 {0, NO}, //
54 {0, NO}, //
55 {0, NO}, // [30]
56 {0, NO}, //
57 {0x07002c, NO}, // SPACE
58 {0x07001e, YES}, // !
59 {0x070034, YES}, // "
60 {0x070020, YES}, // #
61 {0x070021, YES}, // $
62 {0x070022, YES}, // %
63 {0x070024, YES}, // &
64 {0x070034, NO}, // '
65 {0x070026, YES}, // [40] (
66 {0x070027, YES}, // )
67 {0x070025, YES}, // *
68 {0x07002e, YES}, // +
69 {0x070036, NO}, // ,
70 {0x07002d, NO}, // -
71 {0x070037, NO}, // .
72 {0x070038, NO}, // /
73 {0x070027, NO}, // 0
74 {0x07001e, NO}, // 1
75 {0x07001f, NO}, // [50] 2
76 {0x070020, NO}, // 3
77 {0x070021, NO}, // 4
78 {0x070022, NO}, // 5
79 {0x070023, NO}, // 6
80 {0x070024, NO}, // 7
81 {0x070025, NO}, // 8
82 {0x070026, NO}, // 9
83 {0x070033, YES}, // :
84 {0x070033, NO}, // ;
85 {0x070036, YES}, // [60] <
86 {0x07002e, NO}, // =
87 {0x070037, YES}, // >
88 {0x070038, YES}, // ?
89 {0x07001f, YES}, // @
90 {0x070004, YES}, // A
91 {0x070005, YES}, // B
92 {0x070006, YES}, // C
93 {0x070007, YES}, // D
94 {0x070008, YES}, // E
95 {0x070009, YES}, // [70] F
96 {0x07000a, YES}, // G
97 {0x07000b, YES}, // H
98 {0x07000c, YES}, // I
99 {0x07000d, YES}, // J
100 {0x07000e, YES}, // K
101 {0x07000f, YES}, // L
102 {0x070010, YES}, // M
103 {0x070011, YES}, // N
104 {0x070012, YES}, // O
105 {0x070013, YES}, // [80] P
106 {0x070014, YES}, // Q
107 {0x070015, YES}, // R
108 {0x070016, YES}, // S
109 {0x070017, YES}, // T
110 {0x070018, YES}, // U
111 {0x070019, YES}, // V
112 {0x07001a, YES}, // W
113 {0x07001b, YES}, // X
114 {0x07001c, YES}, // Y
115 {0x07001d, YES}, // [90] Z
116 {0x07002f, NO}, // [
117 {0x070031, NO}, // BACKSLASH
118 {0x070030, NO}, // ]
119 {0x070023, YES}, // ^
120 {0x07002d, YES}, // _
121 {0, NO}, //
122 {0x070004, NO}, // a
123 {0x070005, NO}, // b
124 {0x070006, NO}, // c
125 {0x070007, NO}, // [100] d
126 {0x070008, NO}, // e
127 {0x070009, NO}, // f
128 {0x07000a, NO}, // g
129 {0x07000b, NO}, // h
130 {0x07000c, NO}, // i
131 {0x07000d, NO}, // j
132 {0x07000e, NO}, // k
133 {0x07000f, NO}, // l
134 {0x070010, NO}, // m
135 {0x070011, NO}, // [110] n
136 {0x070012, NO}, // o
137 {0x070013, NO}, // p
138 {0x070014, NO}, // q
139 {0x070015, NO}, // r
140 {0x070016, NO}, // s
141 {0x070017, NO}, // t
142 {0x070018, NO}, // u
143 {0x070019, NO}, // v
144 {0x07001a, NO}, // w
145 {0x07001b, NO}, // [120] x
146 {0x07001c, NO}, // y
147 {0x07001d, NO}, // z
148 {0x07002f, YES}, // {
149 {0x070031, YES}, // |
150 {0x070030, YES}, // }
151 {0x070035, YES}, // ~
152 {0, NO}, // [127]
153 {0x0700e1, NO}, // SHIFT
154 {0x07002a, NO}, // BACKSPACE
155 {0x0700e0, NO}, // CTRL
156 {0x0700e2, NO}, // ALT
157 {0x07004c, NO} // DEL
158 };
159
160 #endif // REMOTING_IOS_KEY_MAP_US_H_
OLDNEW
« no previous file with comments | « remoting/ios/key_input_unittest.mm ('k') | remoting/ios/session/remoting_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698