1f857971dSopenharmony_ci/*
2f857971dSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
3f857971dSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4f857971dSopenharmony_ci * you may not use this file except in compliance with the License.
5f857971dSopenharmony_ci * You may obtain a copy of the License at
6f857971dSopenharmony_ci *
7f857971dSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f857971dSopenharmony_ci *
9f857971dSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f857971dSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f857971dSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f857971dSopenharmony_ci * See the License for the specific language governing permissions and
13f857971dSopenharmony_ci * limitations under the License.
14f857971dSopenharmony_ci */
15f857971dSopenharmony_ci
16f857971dSopenharmony_ci#ifndef VIRTUAL_DEVICE_DEFINES_H
17f857971dSopenharmony_ci#define VIRTUAL_DEVICE_DEFINES_H
18f857971dSopenharmony_ci
19f857971dSopenharmony_ci#include <cstdint>
20f857971dSopenharmony_ci#include <string>
21f857971dSopenharmony_ci
22f857971dSopenharmony_ci#ifndef REL_WHEEL_HI_RES
23f857971dSopenharmony_ci#define REL_WHEEL_HI_RES 0x0b
24f857971dSopenharmony_ci#endif
25f857971dSopenharmony_ci
26f857971dSopenharmony_ci#ifndef REL_HWHEEL_HI_RES
27f857971dSopenharmony_ci#define REL_HWHEEL_HI_RES 0x0c
28f857971dSopenharmony_ci#endif
29f857971dSopenharmony_ci
30f857971dSopenharmony_cinamespace OHOS {
31f857971dSopenharmony_cinamespace Msdp {
32f857971dSopenharmony_cinamespace DeviceStatus {
33f857971dSopenharmony_ciconstexpr double HALF_VALUE { 2.0 };
34f857971dSopenharmony_ciconstexpr double DEFAULT_PRECISION { 0.1 };
35f857971dSopenharmony_ciconstexpr int32_t SLEEP_TIME { 500 };
36f857971dSopenharmony_ciconstexpr int32_t DOWN_VALUE { 1 };
37f857971dSopenharmony_ciconstexpr int32_t UP_VALUE { 0 };
38f857971dSopenharmony_ciconstexpr int32_t SYNC_VALUE { 0 };
39f857971dSopenharmony_ciconstexpr int32_t OBFUSCATED { 30 };
40f857971dSopenharmony_ciconstexpr int32_t MOVE_VALUE_X { 1 };
41f857971dSopenharmony_ciconstexpr int32_t MOVE_VALUE_Y { -1 };
42f857971dSopenharmony_ci
43f857971dSopenharmony_cistruct ResolutionInfo {
44f857971dSopenharmony_ci    int16_t axisCode { 0 };
45f857971dSopenharmony_ci    int32_t absResolution { 0 };
46f857971dSopenharmony_ci};
47f857971dSopenharmony_ci
48f857971dSopenharmony_cistruct AbsInfo {
49f857971dSopenharmony_ci    int32_t code { 0 };
50f857971dSopenharmony_ci    int32_t minValue { 0 };
51f857971dSopenharmony_ci    int32_t maxValue { 0 };
52f857971dSopenharmony_ci    int32_t fuzz { 0 };
53f857971dSopenharmony_ci    int32_t flat { 0 };
54f857971dSopenharmony_ci};
55f857971dSopenharmony_ci
56f857971dSopenharmony_cistruct Coordinate {
57f857971dSopenharmony_ci    int32_t x { 0 };
58f857971dSopenharmony_ci    int32_t y { 0 };
59f857971dSopenharmony_ci};
60f857971dSopenharmony_ci} // namespace DeviceStatus
61f857971dSopenharmony_ci} // namespace Msdp
62f857971dSopenharmony_ci} // namespace OHOS
63f857971dSopenharmony_ci#endif // VIRTUAL_DEVICE_DEFINES_H