openharmony 鸿蒙 capi-input-input-interceptoreventcallback

2026-08-25 浏览 (1)

Input_InterceptorEventCallback

typedef struct Input_InterceptorEventCallback {...} Input_InterceptorEventCallback

Overview

Defines the structure of interceptor callback events, including mouse events, touch events, and axis events.

Since: 12

Related module: input

Header file: oh_input_manager.h

Summary

Member Variables

NameDescription
Input_MouseEventCallback mouseCallbackCallback for mouse events.
Input_TouchEventCallback touchCallbackCallback used to return the touch event.
Input_AxisEventCallback axisCallbackCallback for axis events.

Member functions

Nametypedef KeywordDescription
typedef void (*Input_KeyEventCallback)(const Input_KeyEvent* keyEvent)Input_KeyEventCallback()Defines the lifecycle callback for keyEvent. If the callback is triggered, keyEvent will be destroyed.
typedef void (*Input_MouseEventCallback)(const Input_MouseEvent* mouseEvent)Input_MouseEventCallback()Defines the lifecycle callback for mouseEvent. If the callback is triggered, mouseEvent will be destroyed.
typedef void (*Input_TouchEventCallback)(const Input_TouchEvent* touchEvent)Input_TouchEventCallback()Defines the lifecycle callback for touchEvent. If the callback is triggered, touchEvent will be destroyed.
typedef void (*Input_AxisEventCallback)(const Input_AxisEvent* axisEvent)Input_AxisEventCallback()Defines the lifecycle callback for axisEvent. If the callback is triggered, axisEvent will be destroyed.

Member Function Description

Input_KeyEventCallback()

typedef void (*Input_KeyEventCallback)(const Input_KeyEvent* keyEvent)

Description

Defines the lifecycle callback for keyEvent. If the callback is triggered, keyEvent will be destroyed.

Since: 12

Parameters

NameDescription
const Input_KeyEvent* keyEventKey event object.

Input_MouseEventCallback()

typedef void (*Input_MouseEventCallback)(const Input_MouseEvent* mouseEvent)

Description

Defines the lifecycle callback for mouseEvent. If the callback is triggered, mouseEvent will be destroyed.

Since: 12

Parameters

NameDescription
const Input_MouseEvent* mouseEventMouse event object.

Input_TouchEventCallback()

typedef void (*Input_TouchEventCallback)(const Input_TouchEvent* touchEvent)

Description

Defines the lifecycle callback for touchEvent. If the callback is triggered, touchEvent will be destroyed.

Since: 12

Parameters

NameDescription
const Input_TouchEvent* touchEventtouchEvent object.

Input_AxisEventCallback()

typedef void (*Input_AxisEventCallback)(const Input_AxisEvent* axisEvent)

Description

Defines the lifecycle callback for axisEvent. If the callback is triggered, axisEvent will be destroyed.

Since: 12

Parameters

NameDescription
const Input_AxisEvent* axisEventAxis event object.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-input-input-cursorinfo

openharmony 鸿蒙 js-apis-inputevent

openharmony 鸿蒙 js-apis-infraredemitter

openharmony 鸿蒙 js-apis-inputeventclient-sys

openharmony 鸿蒙 capi-input-input-keystate

openharmony 鸿蒙 js-apis-keycode

openharmony 鸿蒙 capi-input-input-axisevent

openharmony 鸿蒙 js-apis-pointer-sys

openharmony 鸿蒙 js-apis-inputmonitor-sys

openharmony 鸿蒙 capi-input-input-devicelistener

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