Mouse Position
- TypeScript
- C#
type MousePositionPayload = {
x: number
y: number
}
struct MousePositionPayload
{
public double X;
public double Y;
}
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
.