• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_EVENT_CONSTANTS_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_EVENT_CONSTANTS_H
18 
19 #include <cstdint>
20 namespace OHOS::Ace::NG {
21 
22 enum class EventTreeType {
23     TOUCH = 0,
24     POST_EVENT,
25 };
26 
27 enum class AxisModel {
28     ABS_X = 0,
29     ABS_Y,
30     ABS_Z,
31     ABS_RZ,
32     ABS_GAS,
33     ABS_BRAKE,
34     ABS_HAT0X,
35     ABS_HAT0Y,
36 };
37 
38 } // namespace OHOS::Ace::NG
39 
40 namespace OHOS::Ace {
41 
42 enum class UIInputEventType {
43     NONE = 0,
44     TOUCH,
45     AXIS,
46     KEY,
47     FOCUS_AXIS,
48 };
49 
50 enum class KeyIntention : int32_t {
51     INTENTION_UNKNOWN = -1,
52     INTENTION_UP = 1,
53     INTENTION_DOWN = 2,
54     INTENTION_LEFT = 3,
55     INTENTION_RIGHT = 4,
56     INTENTION_SELECT = 5,
57     INTENTION_ESCAPE = 6,
58     INTENTION_BACK = 7,
59     INTENTION_FORWARD = 8,
60     INTENTION_MENU = 9,
61     INTENTION_HOME = 10,
62     INTENTION_PAGE_UP = 11,
63     INTENTION_PAGE_DOWN = 12,
64     INTENTION_ZOOM_OUT = 13,
65     INTENTION_ZOOM_IN = 14,
66 
67     INTENTION_MEDIA_PLAY_PAUSE = 100,
68     INTENTION_MEDIA_FAST_FORWARD = 101,
69     INTENTION_MEDIA_FAST_REWIND = 102,
70     INTENTION_MEDIA_FAST_PLAYBACK = 103,
71     INTENTION_MEDIA_NEXT = 104,
72     INTENTION_MEDIA_PREVIOUS = 105,
73     INTENTION_MEDIA_MUTE = 106,
74     INTENTION_VOLUTE_UP = 107,
75     INTENTION_VOLUTE_DOWN = 108,
76 
77     INTENTION_CALL = 200,
78     INTENTION_ENDCALL = 201,
79     INTENTION_REJECTCALL = 202,
80 
81     INTENTION_CAMERA = 300,
82 };
83 } // namespace OHOS::Ace
84 
85 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_EVENT_CONSTANTS_H
86