| // Copyright (C) 2016 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| syntax = "proto3"; |
| |
| package android; |
| |
| enum KeyCode { |
| Unknown = 0; |
| SoftLeft = 1; |
| SoftRight = 2; |
| Home = 3; |
| Back = 4; |
| Call = 5; |
| Endcall = 6; |
| Num0 = 7; |
| Num1 = 8; |
| Num2 = 9; |
| Num3 = 10; |
| Num4 = 11; |
| Num5 = 12; |
| Num6 = 13; |
| Num7 = 14; |
| Num8 = 15; |
| Num9 = 16; |
| Star = 17; |
| Pound = 18; |
| DpadUp = 19; |
| DpadDown = 20; |
| DpadLeft = 21; |
| DpadRight = 22; |
| DpadCenter = 23; |
| VolumeUp = 24; |
| VolumeDown = 25; |
| Power = 26; |
| Camera = 27; |
| Clear = 28; |
| A = 29; |
| B = 30; |
| C = 31; |
| D = 32; |
| E = 33; |
| F = 34; |
| G = 35; |
| H = 36; |
| I = 37; |
| J = 38; |
| K = 39; |
| L = 40; |
| M = 41; |
| N = 42; |
| O = 43; |
| P = 44; |
| Q = 45; |
| R = 46; |
| S = 47; |
| T = 48; |
| U = 49; |
| V = 50; |
| W = 51; |
| X = 52; |
| Y = 53; |
| Z = 54; |
| Comma = 55; |
| Period = 56; |
| AltLeft = 57; |
| AltRight = 58; |
| ShiftLeft = 59; |
| ShiftRight = 60; |
| Tab = 61; |
| Space = 62; |
| Sym = 63; |
| Explorer = 64; |
| Envelope = 65; |
| Enter = 66; |
| Del = 67; |
| Grave = 68; |
| Minus = 69; |
| Equals = 70; |
| LeftBracket = 71; |
| RightBracket = 72; |
| Backslash = 73; |
| Semicolon = 74; |
| Apostrophe = 75; |
| Slash = 76; |
| At = 77; |
| Num = 78; |
| Headsethook = 79; |
| Focus = 80; |
| Plus = 81; |
| Menu = 82; |
| Notification = 83; |
| Search = 84; |
| MediaPlaypause = 85; |
| MediaStop = 86; |
| MediaNext = 87; |
| MediaPrevious = 88; |
| MediaRewind = 89; |
| MediaFastforward = 90; |
| Mute = 91; |
| PageUp = 92; |
| PageDown = 93; |
| Pictsymbols = 94; |
| SwitchCharset = 95; |
| ButtonA = 96; |
| ButtonB = 97; |
| ButtonC = 98; |
| ButtonX = 99; |
| ButtonY = 100; |
| ButtonZ = 101; |
| ButtonL1 = 102; |
| ButtonR1 = 103; |
| ButtonL2 = 104; |
| ButtonR2 = 105; |
| ButtonThumbl = 106; |
| ButtonThumbr = 107; |
| ButtonStart = 108; |
| ButtonSelect = 109; |
| ButtonMode = 110; |
| Escape = 111; |
| ForwardDel = 112; |
| CtrlLeft = 113; |
| CtrlRight = 114; |
| CapsLock = 115; |
| ScrollLock = 116; |
| MetaLeft = 117; |
| MetaRight = 118; |
| Function = 119; |
| Sysrq = 120; |
| Break = 121; |
| MoveHome = 122; |
| MoveEnd = 123; |
| Insert = 124; |
| Forward = 125; |
| MediaPlay = 126; |
| MediaPause = 127; |
| MediaClose = 128; |
| MediaEject = 129; |
| MediaRecord = 130; |
| F1 = 131; |
| F2 = 132; |
| F3 = 133; |
| F4 = 134; |
| F5 = 135; |
| F6 = 136; |
| F7 = 137; |
| F8 = 138; |
| F9 = 139; |
| F10 = 140; |
| F11 = 141; |
| F12 = 142; |
| NumLock = 143; |
| Numpad0 = 144; |
| Numpad1 = 145; |
| Numpad2 = 146; |
| Numpad3 = 147; |
| Numpad4 = 148; |
| Numpad5 = 149; |
| Numpad6 = 150; |
| Numpad7 = 151; |
| Numpad8 = 152; |
| Numpad9 = 153; |
| NumpadDivide = 154; |
| NumpadMultiply = 155; |
| NumpadSubtract = 156; |
| NumpadAdd = 157; |
| NumpadDot = 158; |
| NumpadComma = 159; |
| NumpadEnter = 160; |
| NumpadEquals = 161; |
| NumpadLeftparen = 162; |
| NumpadRightparen = 163; |
| VolumeMute = 164; |
| Info = 165; |
| ChannelUp = 166; |
| ChannelDown = 167; |
| ZoomIn = 168; |
| ZoomOut = 169; |
| TV = 170; |
| Window = 171; |
| Guide = 172; |
| DVR = 173; |
| Bookmark = 174; |
| Captions = 175; |
| Settings = 176; |
| TVPower = 177; |
| TVInput = 178; |
| StbPower = 179; |
| StbInput = 180; |
| AvrPower = 181; |
| AvrInput = 182; |
| ProgRed = 183; |
| ProgGreen = 184; |
| ProgYellow = 185; |
| ProgBlue = 186; |
| AppSwitch = 187; |
| Button1 = 188; |
| Button2 = 189; |
| Button3 = 190; |
| Button4 = 191; |
| Button5 = 192; |
| Button6 = 193; |
| Button7 = 194; |
| Button8 = 195; |
| Button9 = 196; |
| Button10 = 197; |
| Button11 = 198; |
| Button12 = 199; |
| Button13 = 200; |
| Button14 = 201; |
| Button15 = 202; |
| Button16 = 203; |
| LanguageSwitch = 204; |
| MannerMode = 205; |
| ThreeDMode = 206; |
| Contacts = 207; |
| Calendar = 208; |
| Music = 209; |
| Calculator = 210; |
| } |