1 #ifndef __DALI_KEY_EXTENSION_H__
2 #define __DALI_KEY_EXTENSION_H__
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/events/key-event.h>
23 #include <dali/public-api/adaptor-framework/key.h>
24 #include <dali/devel-api/adaptor-framework/key-extension-plugin.h>
30 * @brief Enumeration for mapping keyboard and mouse button event keycodes to extension codes.
38 * @brief Checks if a key event is for a specific extension DALI KEY.
41 * @param keyEvent reference to a keyEvent structure
42 * @param daliKey Dali extension key enum
43 * @return true if the key is matched, @c false if not
45 DALI_IMPORT_API bool IsExtensionKey( const Dali::KeyEvent& keyEvent, Dali::EXTENSION_KEY daliKey);
49 class KeyExtension : public Dali::KeyExtensionPlugin
55 * @brief KeyExtension constructor.
61 * @brief KeyExtension destructor.
64 virtual ~KeyExtension();
67 * @brief Get extension key lookup table.
70 * @return Pointer of extension Key lookup table.
72 virtual Dali::KeyExtensionPlugin::KeyLookup* GetKeyLookupTable();
75 * @brief Get count of extension key lookup table.
78 * @return count of extension Key lookup table.
80 virtual std::size_t GetKeyLookupTableCount();