Files
huangkai71 fe87a84eea L1-L2 code sync
Signed-off-by: huangkai71 <huangkai71@huawei.com>
2021-06-18 02:13:28 +00:00

34 lines
743 B
C

/*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
*
* HDF is dual licensed: you can use it either under the terms of
* the GPL, or the BSD license, at your option.
* See the LICENSE file in the root of this repository for complete details.
*/
#ifndef HDF_KEY_H
#define HDF_KEY_H
#include <securec.h>
#include "osal_time.h"
#include "input_config.h"
typedef struct {
uint32_t definedEvent;
} KeyEventData;
typedef struct KeyDriverInfo {
struct HdfDeviceObject *hdfKeyDev;
KeyEventData eventData;
uint8_t devType;
KeyChipCfg *keyCfg;
InputDevice *inputdev;
uint16_t preStatus;
uint64_t timeStamp;
} KeyDriver;
enum KeyStatusInfo {
INPUT_KEY_UP,
INPUT_KEY_DOWN,
INPUT_KEY_INVALID
};
#endif