1 #ifndef DALI_KEY_EVENT_DEVEL_H
2 #define DALI_KEY_EVENT_DEVEL_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/devel-api/events/device.h>
28 namespace DevelKeyEvent
32 * @brief Get the device name the key event originated from
34 * @param[in] keyEvent The KeyEvent to retrieve the device name from
35 * @return The device name
37 DALI_IMPORT_API std::string GetDeviceName( const KeyEvent& keyEvent );
40 * @brief Get the device class the key event originated from
42 * The device class type is classification type of the input device of event received
43 * @param[in] keyEvent The KeyEvent to retrieve the device class from
44 * @return The type of the device class
46 DALI_IMPORT_API DevelDevice::Class::Type GetDeviceClass( const KeyEvent& keyEvent );
49 * @brief Get the device subclass the key event originated from
51 * The device subclass type is subclassification type of the input device of event received.
52 * @param[in] keyEvent The KeyEvent to retrieve the device subclass from
53 * @return The type of the device subclass
55 DALI_IMPORT_API DevelDevice::Subclass::Type GetDeviceSubclass( const KeyEvent& keyEvent );
57 } // namespace DevelKeyEvent
61 #endif //DALI_KEY_EVENT_DEVEL_H