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)20std::shared_ptr<AxisEvent> AxisEvent::from(std::shared_ptr<InputEvent> inputEvent) 21 { 22 return nullptr; 23 } 24 AxisEvent(int32_t eventType)25AxisEvent::AxisEvent(int32_t eventType) : InputEvent(eventType) {} 26 ~AxisEvent()27AxisEvent::~AxisEvent() {} 28 Create()29std::shared_ptr<AxisEvent> AxisEvent::Create() 30 { 31 return std::shared_ptr<AxisEvent>(new AxisEvent(InputEvent::EVENT_TYPE_AXIS)); 32 } 33 GetAxisAction()34int32_t AxisEvent::GetAxisAction() 35 { 36 return 0; 37 } 38 SetAxisAction(int32_t axisAction)39void AxisEvent::SetAxisAction(int32_t axisAction) {} 40 GetAxisType() const41int32_t AxisEvent::GetAxisType() const 42 { 43 return 0; 44 } 45 SetAxisType(int32_t axisType)46void AxisEvent::SetAxisType(int32_t axisType) {} 47 GetAxisValue() const48int32_t AxisEvent::GetAxisValue() const 49 { 50 return 0; 51 } 52 SetAxisValue(int32_t axisValue)53void AxisEvent::SetAxisValue(int32_t axisValue) {} 54 } // namespace MMI 55 } // namespace OHOS 56