mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
cfad5b4272
输入事件特殊处理 Change-Id: I5266eb98b82d8feea4147eb4878cb691b2100368 Signed-off-by: zhengjiangliang <zhengjiangliang@huawei.com>
37 lines
1.0 KiB
C++
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
|