openharmony 鸿蒙 capi-input-input-interceptoroptions

2026-08-25 浏览 (1)

Input_InterceptorOptions

typedef struct Input_InterceptorOptions Input_InterceptorOptions

Overview

Defines event interception options.

Since: 12

Related module: input

Header file: oh_input_manager.h

Related APIs:

NameDescription
OH_Input_AddKeyEventInterceptorAdds an interceptor for key events. If multiple interceptors are added, only the first one takes effect. Key events are intercepted only when the application gains focus.
OH_Input_RemoveKeyEventInterceptorRemoves the interceptor for key events.
OH_Input_AddInputEventInterceptorAdds an interceptor for input events, including mouse, touch, and axis events. If multiple interceptors are added, only the first one takes effect. Key events are intercepted only when the application window is hit.
OH_Input_RemoveInputEventInterceptorRemoves the interceptor for input events, including mouse, touch, and axis events.

你可能感兴趣的鸿蒙文章

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