X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fevents%2Fkey-event-devel.h;h=bdf1680c6b95d362b6f17798ab38b4af7c6dec01;hb=2ecd4fa47f0f90ff8679460fe35b433a09d45b47;hp=417dd48d5e8e62435d210383d6cfa19a821ba90a;hpb=1588027419834b81ba7f6148daeeb16a0002ce29;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/events/key-event-devel.h b/dali/devel-api/events/key-event-devel.h index 417dd48..bdf1680 100644 --- a/dali/devel-api/events/key-event-devel.h +++ b/dali/devel-api/events/key-event-devel.h @@ -1,61 +1,45 @@ -#ifndef DALI_KEY_EVENT_DEVEL_H -#define DALI_KEY_EVENT_DEVEL_H - -/* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. - * - * 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. - * - */ - -// INTERNAL_INCLUDES -#include -#include - -namespace Dali -{ - -namespace DevelKeyEvent -{ - -/** - * @brief Get the device name the key event originated from - * - * @param[in] keyEvent The KeyEvent to retrieve the device name from - * @return The device name - */ -DALI_IMPORT_API std::string GetDeviceName( const KeyEvent& keyEvent ); - -/** - * @brief Get the device class the key event originated from - * - * The device class type is classification type of the input device of event received - * @param[in] keyEvent The KeyEvent to retrieve the device class from - * @return The type of the device class - */ -DALI_IMPORT_API DevelDevice::Class::Type GetDeviceClass( const KeyEvent& keyEvent ); - -/** - * @brief Get the device subclass the key event originated from - * - * The device subclass type is subclassification type of the input device of event received. - * @param[in] keyEvent The KeyEvent to retrieve the device subclass from - * @return The type of the device subclass - */ -DALI_IMPORT_API DevelDevice::Subclass::Type GetDeviceSubclass( const KeyEvent& keyEvent ); - -} // namespace DevelKeyEvent - -} // namespace Dali - -#endif //DALI_KEY_EVENT_DEVEL_H +#ifndef DALI_KEY_EVENT_DEVEL_H +#define DALI_KEY_EVENT_DEVEL_H + +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * 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. + * + */ + +// INTERNAL INCLUDES +#include + +namespace Dali +{ + +namespace DevelKeyEvent +{ + +/** + * @brief Gets the logical key string. + * + * For example, when the user presses 'shift' key and '1' key together, the logical key is "exclamation". + * Plus, the keyPressedName is "1", and the keyPressed is "!". + * + * @param[in] keyEvent The instance of KeyEvent. + * @return The logical key symbol + */ +DALI_CORE_API std::string GetLogicalKey( KeyEvent keyEvent ); + +} // namespace DevelKeyEvent + +} // namespace Dali + +#endif // DALI_KEY_EVENT_DEVEL_H