typedef struct Input_InterceptorOptions Input_InterceptorOptions
Event interceptor options, which are used to configure parameters and rules for input event interception. Interception control for key events, mouse events, touchscreen events, and axis events are supported.
Since: 12
Related module: input
Header file: oh_input_manager.h
Related APIs:
| Name | Description |
|---|---|
| OH_Input_AddKeyEventInterceptor | Adds 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_RemoveKeyEventInterceptor | Removes the interceptor for key events. |
| OH_Input_AddInputEventInterceptor | Adds 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_RemoveInputEventInterceptor | Removes the interceptor for input events, including mouse, touch, and axis events. |