window_window_manager/previewer/mock/key_event.h
zhengjiangliang cfad5b4272 模态窗口绑定提前
输入事件特殊处理

Change-Id: I5266eb98b82d8feea4147eb4878cb691b2100368
Signed-off-by: zhengjiangliang <zhengjiangliang@huawei.com>
2022-09-26 21:10:43 +08:00

37 lines
1.0 KiB
C++

/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef KEY_EVENT_H
#define KEY_EVENT_H
#include "input_event.h"
namespace OHOS {
namespace MMI {
class KeyEvent : public InputEvent {
public:
static const int32_t KEYCODE_FN = 0;
static const int32_t KEYCODE_NUMPAD_RIGHT_PAREN = 1;
static const int32_t KEYCODE_0 = 2;
static const int32_t KEYCODE_BACK = 3;
int32_t GetKeyCode() const
{
return 0;
}
};
} // namespace MMI
} // namespace OHOS
#endif // KEY_EVENT_H