window_window_manager/previewer/mock/key_event.h

37 lines
1.0 KiB
C
Raw Normal View History

/*
* 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