• 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 #include "mmi_log.h"
19 
20 namespace OHOS {
21 namespace MMI {
22 namespace {
23 constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, MMI_LOG_DOMAIN, "AxisEvent" };
24 } // namespace
from(std::shared_ptr<InputEvent> inputEvent)25 std::shared_ptr<AxisEvent> AxisEvent::from(std::shared_ptr<InputEvent> inputEvent)
26 {
27     return nullptr;
28 }
29 
AxisEvent(int32_t eventType)30 AxisEvent::AxisEvent(int32_t eventType) : InputEvent(eventType) {}
31 
~AxisEvent()32 AxisEvent::~AxisEvent() {}
33 
Create()34 std::shared_ptr<AxisEvent> AxisEvent::Create()
35 {
36     auto event = std::shared_ptr<AxisEvent>(new (std::nothrow) AxisEvent(InputEvent::EVENT_TYPE_AXIS));
37     CHKPP(event);
38     return event;
39 }
40 
GetAxisAction()41 int32_t AxisEvent::GetAxisAction()
42 {
43     return 0;
44 }
45 
SetAxisAction(int32_t axisAction)46 void AxisEvent::SetAxisAction(int32_t axisAction) {}
47 
GetAxisType() const48 int32_t AxisEvent::GetAxisType() const
49 {
50     return 0;
51 }
52 
SetAxisType(int32_t axisType)53 void AxisEvent::SetAxisType(int32_t axisType) {}
54 
GetAxisValue() const55 int32_t AxisEvent::GetAxisValue() const
56 {
57     return 0;
58 }
59 
SetAxisValue(int32_t axisValue)60 void AxisEvent::SetAxisValue(int32_t axisValue) {}
61 } // namespace MMI
62 } // namespace OHOS
63