/ohos5.0/docs/en/application-dev/reference/apis-input-kit/ |
H A D | js-apis-mouseevent.md | 17 Enumerates mouse event types. 35 Enumerates mouse buttons. 41 | LEFT | 0 | Left button on the mouse. | 42 | MIDDLE | 1 | Middle button on the mouse. | 43 | RIGHT | 2 | Right button on the mouse. | 44 | SIDE | 3 | Side button on the mouse.| 47 | BACK | 6 | Back button on the mouse.| 48 | TASK | 7 | Task button on the mouse.| 52 Enumerates mouse axis types. 65 Defines the mouse axis type and axis value. [all …]
|
H A D | js-apis-cooperate-sys.md | 55 console.log(`Keyboard mouse crossing enable success.`); 58 …console.log(`Keyboard mouse crossing enable failed, error: ${JSON.stringify(error, [`code`, `messa… 99 console.log(`Keyboard mouse crossing enable success.`); 148 console.log(`Start Keyboard mouse crossing success.`); 198 console.log(`Start Keyboard mouse crossing success.`); 241 console.log(`Stop Keyboard mouse crossing success.`); 270 console.log(`Stop Keyboard mouse crossing success.`); 400 console.log(`Keyboard mouse crossing event: ${JSON.stringify(msg)}`); 441 console.log(`Keyboard mouse crossing event: ${JSON.stringify(msg)}`); 445 console.log(`Keyboard mouse crossing event`); [all …]
|
H A D | oh__input__manager_8h.md | 24 …| Defines the structure of the interceptor for callback events, including mouse events, touch even… 34 …_MouseEventAction](input.md#input_mouseeventaction) | Provides the enum values of mouse actions. | 35 …t_MouseAxis](input.md#inputevent_mouseaxis) | Provides the enum values of mouse axis event types. … 36 …_MouseEventButton](input.md#input_mouseeventbutton) | Provides the enum values of mouse buttons. | 42 …t_mouseevent) [Input_MouseEvent](input.md#input_mouseevent) | Defines the mouse event to be inject… 97 …onst struct [Input_MouseEvent](input.md#input_mouseevent) \*mouseEvent) | Injects a mouse event. | 98 …H_Input_CreateMouseEvent](input.md#oh_input_createmouseevent) () | Creates a mouse event object. | 99 …t [Input_MouseEvent](input.md#input_mouseevent) \*\*mouseEvent) | Destroys a mouse event object. | 101 …nput_MouseEvent](input.md#input_mouseevent) \*mouseEvent) | Obtains the action of a mouse event. | 107 …nput_MouseEvent](input.md#input_mouseevent) \*mouseEvent) | Obtains the button of a mouse event. | [all …]
|
H A D | js-apis-pointer.md | 27 …n | Yes | Whether the mouse pointer is visible. The value **true** indicates t… 66 | visible | boolean | Yes | Whether the mouse pointer is visible. The value **true** indicates th… 106 | visible | boolean | Yes | Whether the mouse pointer is visible. The value **true** indicates th… 203 | boolean | Visible status of the mouse pointer. The value **true** indicates that the mouse pointe… 325 Obtains the mouse pointer style. This API returns the result synchronously. 416 Sets the mouse pointer style. This API uses a promise to return the result. 471 Sets the mouse pointer style. This API returns the result synchronously. 516 Type of the primary mouse button. 522 | LEFT | 0 | Left mouse button. | 523 | RIGHT | 1 | Right mouse button. | [all …]
|
H A D | _input___interceptor_event_callback.md | 6 Defines the structure of the interceptor for callback events, including mouse events, touch events,… 20 …(input.md#input_mouseeventcallback) [mouseCallback](#mousecallback) | Callback for mouse events. | 45 Callback for mouse events.
|
H A D | input.md | 1281 Creates a mouse event object. 1434 Destroys a mouse event object. 2123 Obtains the action of a mouse event. 2160 Time when the mouse event occurs. 2206 Axis value of the mouse axis event. 2215 Obtains the button of a mouse event. 2229 Enumerates mouse buttons. 2473 Injects a mouse event. 3054 Sets the action for a mouse event. 3094 Sets the axis type for a mouse event. [all …]
|
/ohos5.0/docs/en/application-dev/device/input/ |
H A D | pointerstyle-guidelines.md | 20 …k\<void>): void | Sets the visible status of the mouse pointer. This setting takes effect for the … 31 2. Hide the mouse pointer. 33 4. Display the mouse pointer. 39 // 2. Hide the mouse pointer. 53 // 4. Display the mouse pointer. 75 3. Set the mouse pointer to the color picker style. 77 5. Set the mouse pointer to the default style. 97 // 3. Set the mouse pointer to the color picker style. 99 console.log(`Successfully set mouse pointer style`); 117 // 5. Set the mouse pointer to the default style. [all …]
|
H A D | inputmonitor-guidelines.md | 19 | on(type: 'mouse', receiver: Callback<MouseEvent>): void |Listens for mouse events.| 26 | off(type: 'mouse', receiver: Callback<MouseEvent>): void |Cancels listening for mouse events.| 36 …mouse button pressing status. Specifically, listen for mouse button events by calling [on](../../r… 45 return true;// Callback triggered when the mouse button is pressed. 51 inputMonitor.on('mouse', (mouseEvent: MouseEvent) => {// Start to listen for mouse events. 58 // Callback triggered when the mouse button is pressed. 60 inputMonitor.off('mouse', callback);// Cancel listening for mouse events.
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.5.1/ |
H A D | changelogs-arkui.md | 11 The response of the mouse wheel and the touchpad to the swipe and pan gestures is improved, and the… 25 … **\<Grid>**, **\<Scroll>**, and any other components that can be scrolled by using the mouse wheel 31 …mouse pointer is located, the mouse wheel and the touchpad's two-finger functionality can respond … 33 …bound to or built in a component. When the mouse pointer is located in the component area, scrolli… 35 …bound to or built in a component. When the mouse pointer is located in the component area, scrolli… 41 … in which the mouse pointer is located, the first swipe event on the first child node may be trigg… 43 … the area in which the mouse pointer is located, the first swipe event on the first child node may… 45 …mouse pointer is located, the first vertical swipe event on the first child node may be triggered … 49 Example 1: Scrolling the mouse wheel, scrolling the mouse wheel while pressing Shift, or swiping ho… 51 Example 2: Scrolling the mouse wheel or swiping vertically with two fingers on the touchpad can tri… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-input-kit/ |
H A D | js-apis-cooperate-sys.md | 55 console.log(`Keyboard mouse crossing enable success.`); 58 …console.log(`Keyboard mouse crossing enable failed, error: ${JSON.stringify(error, [`code`, `messa… 99 console.log(`Keyboard mouse crossing enable success.`); 148 console.log(`Start Keyboard mouse crossing success.`); 198 console.log(`Start Keyboard mouse crossing success.`); 241 console.log(`Stop Keyboard mouse crossing success.`); 270 console.log(`Stop Keyboard mouse crossing success.`); 400 console.log(`Keyboard mouse crossing event: ${JSON.stringify(msg)}`); 441 console.log(`Keyboard mouse crossing event: ${JSON.stringify(msg)}`); 445 console.log(`Keyboard mouse crossing event`); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-distributedservice-kit/ |
H A D | js-apis-devicestatus-cooperate-sys.md | 227 console.log(`Start Keyboard mouse crossing success.`); 276 console.log(`Start Keyboard mouse crossing success.`); 324 console.log(`Stop Keyboard mouse crossing success.`); 368 console.log(`Stop Keyboard mouse crossing success.`); 657 console.log('Register mouse location listener'); 661 console.log('Unregister mouse location listener'); 676 console.log('Register mouse location listener'); 966 console.log(`Start Keyboard mouse crossing success.`); 1067 console.log(`Stop Keyboard mouse crossing success.`); 1114 console.log(`Stop Keyboard mouse crossing success.`); [all …]
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | uinput.md | 21 | -M | --mouse | Injects a mouse event. | 72 uinput --mouse --move <dx> <dy> 97 Presses a mouse button. This command is used with the mouse up command. For details about key value… 102 uinput --mouse --down <key> 106 Releases a mouse button. This command is used with the mouse down command. For details about key va… 111 uinput --mouse --up <key> 121 Clicks a mouse button. For details about key values, see [Mouse Buttons](#mouse-buttons) 126 uinput --mouse --click <key> 172 Drags a mouse. 206 | 0 | Left mouse button. | [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-common-events-device-input-event.md | 4 Keyboard and mouse events refer to the input events of the peripheral keyboard and mouse. 9 The supported mouse events include the events triggered by the peripheral mouse and touchpad. 15 …mouse pointer enters or leaves the component.<br>**isHover**: whether the mouse pointer hovers ove… 16 …ent is clicked by a mouse button or the mouse pointer moves on the component. The **event** parame… 27 When ArkUI receives the mouse event, it checks whether the mouse event concerns pressing, lifting, … 32 - No: Only the collision test and callback response of the mouse event are performed. 110 …mouse event occurs. It is triggered each time a mouse pointer action (**MouseAction**) is detected… 118 …mouse button being pressed or released that triggers the mouse event. The values are **Left**, **R… 186 2. Clicking the mouse button: After the mouse pointer enters the **Button** component, the **Button… 195 To prevent the mouse event from bubbling, call the **stopPropagation()** API. [all …]
|
H A D | arkts-event-overview.md | 4 … events based on how they are triggered: touchscreen events, keyboard and mouse events, focus even… 9 - [Keyboard and mouse event](arkts-common-events-device-input-event.md): an event triggered by an o… 10 …- The mouse event refers to an event triggered by an operation performed with a peripheral mouse d… 15 …initiated by touchscreen and keyboard/mouse events, including long-press dragging with a finger or…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-mouse-key.md | 3 If a mouse action triggers multiple events, the order of these events is fixed. By default, mouse e… 8 > - For the time being, a mouse event can be triggered only by an external mouse device. 14 Triggered when the component is clicked by a mouse button or the mouse pointer moves on the compone… 24 | event | [MouseEvent](#mouseevent) | Yes | Timestamp, mouse button, action, coordinates of the cl… 41 | windowX<sup>10+</sup> | number | X coordinate of the mouse pointer relat… 42 | windowY<sup>10+</sup> | number | Y coordinate of the mouse pointer relat… 43 | displayX<sup>10+</sup> | number | X coordinate of the mouse pointer relat… 44 | displayY<sup>10+</sup> | number | Y coordinate of the mouse pointer relat… 45 | screenX<sup>(deprecated)</sup> | number | X coordinate of the mouse pointer relat… 46 | screenY<sup>(deprecated)</sup> | number | Y coordinate of the mouse pointer relat… [all …]
|
H A D | ts-universal-events-hover.md | 3 A hover event is triggered when the mouse slides or a stylus moves over the component on the screen. 8 > - Currently, only an external mouse device or stylus can be used to trigger a hover event. 14 Triggered when the mouse or stylus enters or leaves the component. 24 …mouse pointer or stylus is hovering over the component. The value **true** means that the mouse po… 61 …mically change the text content and background color of a button when the mouse pointer or stylus … 62 // Use event.sourceTool to determine whether the device is a mouse device or stylus. 68 this.hoverText = 'mouse hover';
|
/ohos5.0/docs/en/application-dev/reference/apis-distributedservice-kit/ |
H A D | js-apis-devicestatus-cooperate-sys.md | 227 console.log(`Start Keyboard mouse crossing success.`); 276 console.log(`Start Keyboard mouse crossing success.`); 324 console.log(`Stop Keyboard mouse crossing success.`); 368 console.log(`Stop Keyboard mouse crossing success.`); 657 console.log('Register mouse location listener'); 661 console.log('Unregister mouse location listener'); 676 console.log('Register mouse location listener'); 703 Defines the mouse pointer position for screen hopping. 738 Represents the mouse cursor position. 1067 console.log(`Stop Keyboard mouse crossing success.`); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | ui__input__event_8h.md | 36 …ACTION_MOVE](_ark_u_i___event_module.md) = 3 } | Enumerates the action codes of the mouse event. | 50 …er of touch points from a directional input event (such as a touch event, mouse event, or axis eve… 51 …D of a touch point from a directional input event (such as a touch event, mouse event, or axis eve… 52 … current component from a directional input event (such as a touch event, mouse event, or axis eve… 54 … current component from a directional input event (such as a touch event, mouse event, or axis eve… 56 …application window from a directional input event (such as a touch event, mouse event, or axis eve… 60 …the current screen from a directional input event (such as a touch event, mouse event, or axis eve… 62 …the current screen from a directional input event (such as a touch event, mouse event, or axis eve… 69 … historical events from a directional input event (such as a touch event, mouse event, or axis eve… 88 …k_u_i___event_module.md#arkui_uiinputevent) \*event) | Obtains the button type of a mouse event. | [all …]
|
H A D | _ark_u_i___event_module.md | 180 Enumerates the action codes of the mouse event. 187 | UI_MOUSE_EVENT_ACTION_PRESS | The mouse button is pressed. | 188 | UI_MOUSE_EVENT_ACTION_RELEASE | The mouse button is released. | 189 | UI_MOUSE_EVENT_ACTION_MOVE | The mouse cursor moves. | 199 Enumerates the button types of the mouse event. 206 | UI_MOUSE_EVENT_BUTTON_LEFT | Left button on the mouse. | 207 | UI_MOUSE_EVENT_BUTTON_RIGHT | Right button on the mouse. | 208 | UI_MOUSE_EVENT_BUTTON_MIDDLE | Middle button on the mouse. | 339 Obtains the action type of a mouse event. 351 …mouse action type. The value **1** indicates that the mouse button is pressed, **2** indicates tha… [all …]
|
H A D | _o_h___native_x_component___mouse_event.md | 6 Describes the mouse event. 28 | [timestamp = 0](_o_h___native_x_component.md#timestamp) | Timestamp of the current mouse event. I… 29 …_NATIVEXCOMPONENT_MOUSE_NONE](_o_h___native_x_component.md#action) | Current mouse event action. |
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | unified-interaction-events.md | 31 | Mouse| Press the left mouse button.| 35 … press and release operations using a finger on the touchscreen corresponds to those using a mouse. 48 | Mouse| Click the left mouse button twice.| 62 | Mouse| Long press the left mouse button.| 76 | Mouse| Click the right mouse button.| 82 Any menu displayed by long press on the touchscreen must support right-click using a mouse and touc… 95 | Mouse| Press the left mouse button and move the mouse (no need to hold down and wait).| 113 For a scroll using the mouse or touchpad, the UI elements change, and the mouse pointer does not mo… 125 | Mouse| Scroll the mouse wheel.| 129 For a fling using the mouse or touchpad, the UI elements change, and the mouse pointer does not mov… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/dfx/ |
H A D | uinput.md | 21 | -M | --mouse | 注入鼠标事件。 | 72 uinput --mouse --move <dx> <dy> 84 uinput --mouse --move <dx1> <dy1> <dx2> <dy2> [smooth time] --trace 102 uinput --mouse --down <key> 111 uinput --mouse --up <key> 126 uinput --mouse --click <key> 141 uinput --mouse --double_click <dx> <dy> <id> [press time] [click interval time] 160 uinput --mouse --scroll <number> 177 uinput --mouse --drag <dx1> <dy1> <dx2> <dy2> [total time] 194 uinput --mouse --interval <time>
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.27/ |
H A D | changelogs-arkui.md | 114 [onHover](../../../application-dev/reference/apis-arkui/arkui-ts/ts-universal-mouse-key.md#onhover) 116 [onMouse](../../../application-dev/reference/apis-arkui/arkui-ts/ts-universal-mouse-key.md#onmouse) 120 …i/arkui-ts/ts-universal-mouse-key.md#onhover)和[onMouse](../../../application-dev/reference/apis-ar…
|
/ohos5.0/docs/zh-cn/application-dev/device/input/ |
H A D | inputmonitor-guidelines.md | 19 | on(type: 'mouse', receiver: Callback<MouseEvent>): void |监听鼠标事件。 | 26 | off(type: 'mouse', receiver: Callback<MouseEvent>): void |取消监听鼠标事件。 | 51 inputMonitor.on('mouse', (mouseEvent: MouseEvent) => {//开始监听鼠标事件 60 inputMonitor.off('mouse', callback);//关闭监听鼠标事件
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-power-wakeup-source-customization.md | 7 …mouse, and provides custom modes for turning on and off these wakeup sources. After a device enter… 50 "mouse": { 78 | mouse | Wakeup by mouse| 150 "mouse": { 180 4. Press the power button to switch the device to the sleep mode, and then move the mouse.
|