1 #ifndef DALI_KEYBOARD_H
2 #define DALI_KEYBOARD_H
5 * Copyright (c) 2020 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/dali-adaptor-common.h>
27 * @addtogroup dali_adaptor_framework
32 * @brief Keyboard functions.
37 * @brief Sets keyboard repeat information.
39 * @param[in] rate The key repeat rate value in seconds
40 * @param[in] delay The key repeat delay value in seconds
41 * @return true if setting the keyboard repeat succeeds
43 DALI_ADAPTOR_API bool SetRepeatInfo(float rate, float delay);
46 * @brief Gets keyboard repeat information.
48 * @param[in] rate The key repeat rate value in seconds
49 * @param[in] delay The key repeat delay value in seconds
50 * @return true if getting the keyboard repeat succeeds, false otherwise
52 DALI_ADAPTOR_API bool GetRepeatInfo(float& rate, float& delay);
54 } // namespace Keyboard
61 #endif // DALI_KEYBOARD_H