2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
33 // matches a DALI_KEY enum, to key name
34 KeyLookup KeyLookupTable[]=
36 // more than one key name can be assigned to a single dali-key code
37 // e.g. "Menu" and "XF86Menu" are both assigned to DALI_KEY_MENU
39 { "Escape", DALI_KEY_ESCAPE, false },
40 { "Menu", DALI_KEY_MENU, false },
42 // Now literal strings are used as key names instead of defined symbols in utilX,
43 // since these definition in utilX.h is deprecated
44 { "XF86Camera", DALI_KEY_CAMERA, false },
45 { "XF86Camera_Full", DALI_KEY_CONFIG, false },
46 { "XF86PowerOff", DALI_KEY_POWER, true },
47 { "XF86Standby", DALI_KEY_PAUSE, false },
48 { "Cancel", DALI_KEY_CANCEL, false },
49 { "XF86AudioPlay", DALI_KEY_PLAY_CD, false },
50 { "XF86AudioStop", DALI_KEY_STOP_CD, false },
51 { "XF86AudioPause", DALI_KEY_PAUSE_CD, false },
52 { "XF86AudioNext", DALI_KEY_NEXT_SONG, false },
53 { "XF86AudioPrev", DALI_KEY_PREVIOUS_SONG, false },
54 { "XF86AudioRewind", DALI_KEY_REWIND, false },
55 { "XF86AudioForward", DALI_KEY_FASTFORWARD, false },
56 { "XF86AudioMedia", DALI_KEY_MEDIA, false },
57 { "XF86AudioPlayPause", DALI_KEY_PLAY_PAUSE, false },
58 { "XF86AudioMute", DALI_KEY_MUTE, false },
59 { "XF86Menu", DALI_KEY_MENU, true },
60 { "XF86Home", DALI_KEY_HOME, true },
61 { "XF86Back", DALI_KEY_BACK, true },
62 { "XF86Send", DALI_KEY_MENU, true },
63 { "XF86Phone", DALI_KEY_HOME, true },
64 { "XF86Stop", DALI_KEY_BACK, true },
65 { "XF86HomePage", DALI_KEY_HOMEPAGE, false },
66 { "XF86WWW", DALI_KEY_WEBPAGE, false },
67 { "XF86Mail", DALI_KEY_MAIL, false },
68 { "XF86ScreenSaver", DALI_KEY_SCREENSAVER, false },
69 { "XF86MonBrightnessUp", DALI_KEY_BRIGHTNESS_UP, false },
70 { "XF86MonBrightnessDown", DALI_KEY_BRIGHTNESS_DOWN, false },
71 { "XF86SoftKBD", DALI_KEY_SOFT_KBD, false },
72 { "XF86QuickPanel", DALI_KEY_QUICK_PANEL, false },
73 { "XF86TaskPane", DALI_KEY_TASK_SWITCH, false },
74 { "XF86Apps", DALI_KEY_APPS, false },
75 { "XF86Search", DALI_KEY_SEARCH, false },
76 { "XF86Voice", DALI_KEY_VOICE, false },
77 { "Hangul", DALI_KEY_LANGUAGE, false },
78 { "XF86AudioRaiseVolume", DALI_KEY_VOLUME_UP, true },
79 { "XF86AudioLowerVolume", DALI_KEY_VOLUME_DOWN, true },
81 { "BackSpace", DALI_KEY_BACKSPACE, false },
82 { "Left", DALI_KEY_CURSOR_LEFT, false },
83 { "Right", DALI_KEY_CURSOR_RIGHT, false },
84 { "Shift_L", DALI_KEY_SHIFT_LEFT, false },
85 { "Shift_R", DALI_KEY_SHIFT_RIGHT, false }
88 const std::size_t KEY_LOOKUP_COUNT = (sizeof( KeyLookupTable))/ (sizeof(KeyLookup));
90 } // namespace KeyLookup
92 } // namespace Adaptor
94 } // namespace Internal