Skip to content

Reset Cursor

Reset device cursor to top-left initial position (0, 0).

Interface Description

Interface Type

mouseReset

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID

Return Value

javascript
true  // Returns true on successful operation

Basic Usage

javascript
// Reset cursor to origin
await apiInvoke('mouseReset', {
    deviceId: 'P72578581E07'
});

Execution Scenario

🔄 If pointer drift or abnormal behavior occurs, manual reset can solve the issue

Cooperation: try.catch@foxmail.com