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>
27 namespace DevelKeyEvent
30 * @brief Get the device name the key event originated from
32 * @param[in] keyEvent the KeyEvent to retrieve the device name from
33 * @return the device name
35 std::string GetDeviceName( const KeyEvent& keyEvent );
38 * @brief Set the device name to the KeyEvent
40 * @param[in] keyEvent the KeyEvent to set the device name on
41 * @param[in] deviceName device name string to set
43 void SetDeviceName( KeyEvent& keyEvent, const std::string& deviceName );
49 #endif //DALI_KEY_EVENT_DEVEL_H