2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/dali.h>
20 #include <dali/public-api/common/dali-common.h>
21 #include <dali/devel-api/adaptor-framework/keyboard.h>
22 #include <dali-toolkit/dali-toolkit.h>
29 #include <Ecore_Wl2.h>
31 #include <Ecore_Wayland.h>
36 //#define LOG DALI_LOG_ERROR
44 SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Keyboard_SetRepeatInfo(float rate, float delay)
48 LOG("CSharp_Dali_Keyboard_SetRepeatInfo() [DP1] rate=%f, delay=%f", rate, delay);
52 ret = Dali::Keyboard::SetRepeatInfo(rate, delay);
53 } CALL_CATCH_EXCEPTION(0);
57 LOG("CSharp_Dali_Keyboard_SetRepeatInfo() [DP2] ret=%d", ret);
62 SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Keyboard_GetRepeatInfo(float& rate, float& delay)
66 LOG("CSharp_Dali_Keyboard_GetRepeatInfo() [DP1] rate=%f, delay=%f", rate, delay);
70 ret = Dali::Keyboard::GetRepeatInfo(rate, delay);
71 } CALL_CATCH_EXCEPTION(0);
75 LOG("CSharp_Dali_Keyboard_GetRepeatInfo() [DP2] ret=%d", ret);