1 /*
2 * Copyright (C) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "mock.h"
16
17 namespace OHOS {
18 using namespace OHOS::MMI;
19
20 extern "C" {
HandleMotionAccelerateMouse(const Offset * offset,bool mode,double * abs_x,double * abs_y,int32_t speed,int32_t deviceType)21 int32_t HandleMotionAccelerateMouse(const Offset* offset, bool mode, double* abs_x, double* abs_y,
22 int32_t speed, int32_t deviceType)
23 {
24 return 0;
25 }
26
HandleMotionAccelerateTouchpad(const Offset * offset,bool mode,double * abs_x,double * abs_y,int32_t speed,int32_t deviceType)27 int32_t HandleMotionAccelerateTouchpad(const Offset* offset, bool mode, double* abs_x, double* abs_y,
28 int32_t speed, int32_t deviceType)
29 {
30 return 0;
31 }
32
HandleAxisAccelerateTouchpad(bool mode,double * abs_axis,int32_t deviceType)33 int32_t HandleAxisAccelerateTouchpad(bool mode, double* abs_axis, int32_t deviceType)
34 {
35 return 0;
36 }
37
HandleMotionDynamicAccelerateMouse(const Offset * offset,bool mode,double * abs_x,double * abs_y,int32_t speed,uint64_t delta_time,double display_ppi,double factor)38 int32_t HandleMotionDynamicAccelerateMouse(const Offset* offset, bool mode, double* abs_x, double* abs_y,
39 int32_t speed, uint64_t delta_time, double display_ppi, double factor)
40 {
41 return 0;
42 }
43
HandleMotionDynamicAccelerateTouchpad(const Offset * offset,bool mode,double * abs_x,double * abs_y,int32_t speed,double display_size,double touchpad_size,double touchpad_ppi,int32_t frequency)44 int32_t HandleMotionDynamicAccelerateTouchpad(const Offset* offset, bool mode, double* abs_x, double* abs_y,
45 int32_t speed, double display_size, double touchpad_size, double touchpad_ppi, int32_t frequency)
46 {
47 return 0;
48 }
49 }
50 } // namespace OHOS