2022-08-08 13:47:53 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2022-08-16 00:52:29 +00:00
|
|
|
#ifndef KEY_EVENT_H
|
|
|
|
#define KEY_EVENT_H
|
|
|
|
|
|
|
|
#include "input_event.h"
|
|
|
|
|
2022-08-08 13:47:53 +00:00
|
|
|
namespace OHOS {
|
2022-08-16 00:52:29 +00:00
|
|
|
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;
|
2022-09-24 07:47:13 +00:00
|
|
|
static const int32_t KEYCODE_BACK = 3;
|
2022-08-16 00:52:29 +00:00
|
|
|
|
|
|
|
int32_t GetKeyCode() const
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
} // namespace MMI
|
2022-08-08 13:47:53 +00:00
|
|
|
} // namespace OHOS
|
2022-08-16 00:52:29 +00:00
|
|
|
#endif // KEY_EVENT_H
|