• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2022 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 #include "axis_event.h"
17 
18 namespace OHOS {
19 namespace MMI {
from(std::shared_ptr<InputEvent> inputEvent)20 std::shared_ptr<AxisEvent> AxisEvent::from(std::shared_ptr<InputEvent> inputEvent)
21 {
22     return nullptr;
23 }
24 
AxisEvent(int32_t eventType)25 AxisEvent::AxisEvent(int32_t eventType) : InputEvent(eventType) {}
26 
~AxisEvent()27 AxisEvent::~AxisEvent() {}
28 
Create()29 std::shared_ptr<AxisEvent> AxisEvent::Create()
30 {
31     return std::shared_ptr<AxisEvent>(new AxisEvent(InputEvent::EVENT_TYPE_AXIS));
32 }
33 
GetAxisAction()34 int32_t AxisEvent::GetAxisAction()
35 {
36     return 0;
37 }
38 
SetAxisAction(int32_t axisAction)39 void AxisEvent::SetAxisAction(int32_t axisAction) {}
40 
GetAxisType() const41 int32_t AxisEvent::GetAxisType() const
42 {
43     return 0;
44 }
45 
SetAxisType(int32_t axisType)46 void AxisEvent::SetAxisType(int32_t axisType) {}
47 
GetAxisValue() const48 int32_t AxisEvent::GetAxisValue() const
49 {
50     return 0;
51 }
52 
SetAxisValue(int32_t axisValue)53 void AxisEvent::SetAxisValue(int32_t axisValue) {}
54 } // namespace MMI
55 } // namespace OHOS
56