Skip to main content

Mouse Position

type MousePositionPayload = {
x: number
y: number
}

This data is sent when the host moves the mouse.

caution

The mouse position data is in the format of relative position. The origin of the coordinate is the top-left corner of the main display. In most cases, both x and y should be a number/double in the range of 0 and 1. But depends on the host's display configuration, the value cloud also be negative or greater than 1.