文件名称:
InputEventData.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
5.89 KB
下载地址:
文本预览:
# InputEventData
## **Overview**
**Related Modules:**
[Input](Input.md)
**Description:**
Describes the input event data.
## **Summary**
## Data Fields
## **Details**
## **Field Documentation**
## definedEvent
```
int32_t InputEventData::definedEvent
```
**Description:**
Specific input event, such as the pick-up or put-down event
## fingerID
```
uint32_t InputEventData::fingerID
```
**Description:**
Finger ID, used in multi-touch scenarios
## moreDataFlag
```
bool InputEventData::moreDataFlag
```
**Description:**
Flag of continuous data read
## pointNum
```
uint32_t InputEventData::pointNum
```
**Description:**
Total number of fingers touching the screen
## pressure
```
int32_t InputEventData::pressure
```
**Description:**
Z coordinate of a touch point, such as the pressure
## timeStamp
```
struct [timeval](timeval.md) InputEventData::timeStamp
```
**Description:**
Timestamp
## x
```
int32_t InputEventData::x
```
**Description:**
X coordinate of a touch point
## y
```
int32_t InputEventData::y
```
**Description:**
Y coordinate of a touch point
## **Overview**
**Related Modules:**
[Input](Input.md)
**Description:**
Describes the input event data.
## **Summary**
## Data Fields
struct timeval | |
## **Details**
## **Field Documentation**
## definedEvent
```
int32_t InputEventData::definedEvent
```
**Description:**
Specific input event, such as the pick-up or put-down event
## fingerID
```
uint32_t InputEventData::fingerID
```
**Description:**
Finger ID, used in multi-touch scenarios
## moreDataFlag
```
bool InputEventData::moreDataFlag
```
**Description:**
Flag of continuous data read
## pointNum
```
uint32_t InputEventData::pointNum
```
**Description:**
Total number of fingers touching the screen
## pressure
```
int32_t InputEventData::pressure
```
**Description:**
Z coordinate of a touch point, such as the pressure
## timeStamp
```
struct [timeval](timeval.md) InputEventData::timeStamp
```
**Description:**
Timestamp
## x
```
int32_t InputEventData::x
```
**Description:**
X coordinate of a touch point
## y
```
int32_t InputEventData::y
```
**Description:**
Y coordinate of a touch point
点赞
回复
X