harmony 鸿蒙OH_NativeXComponent_TouchEvent

2023-06-24 浏览 (664)

OH_NativeXComponent_TouchEvent

Overview

Describes the touch event.

Since: 8

Related Modules:

Native XComponent

Summary

Member Variables

NameDescription
id = 0Unique identifier of the finger.
screenX = 0.0X coordinate of the touch point relative to the left edge of the screen.
screenY = 0.0Y coordinate of the touch point relative to the upper edge of the screen.
x = 0.0X coordinate of the touch point relative to the left edge of the XComponent.
y = 0.0Y coordinate of the touch point relative to the upper edge of the XComponent.
type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWNTouch type of the touch event.
size = 0.0Contact area between the finger pad and the screen.
force = 0.0Pressure of the current touch event.
deviceId = 0ID of the device where the current touch event is triggered.
timeStamp = 0Timestamp of the current touch event.
touchPoints [OH_MAX_TOUCH_POINTS_NUMBER]Array of the current touch points.
numPoints = 0Number of current touch points.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native APIs

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/e74e965a6ef04cdc9104807a969299a1