Skip to content

lightgun-poc / lib/virtual / createVirtualMouse

Function: createVirtualMouse() ​

createVirtualMouse(d?): MouseLike

Defined in: lib/virtual.ts:85

A mouse that reports instead of moving.

Aim prints are throttled and dropped, never queued — same rule as the real cursor loop. A consequence worth knowing: the cursor loop only calls in on change, so the last position before the aim comes to rest can go unprinted, leaving the display up to throttleMs stale.

Parameters ​

d? ​

VirtualDeps = {}

Returns ​

MouseLike

Released under the MIT License.