Skip to content

lightgun-poc / lib/virtual / VirtualDeps

Interface: VirtualDeps

Defined in: lib/virtual.ts:68

Injection points for the virtual devices; all defaulted for real use.

Properties

log?

optional log?: (line) => void

Defined in: lib/virtual.ts:69

Parameters

line

string

Returns

void


now?

optional now?: () => number

Defined in: lib/virtual.ts:72

Returns

number


size?

optional size?: object

Defined in: lib/virtual.ts:71

Screen the aim is scaled against — no real one can be measured here.

h

h: number

w

w: number


throttleMs?

optional throttleMs?: number

Defined in: lib/virtual.ts:74

Minimum gap between aim prints; 10Hz keeps a 500Hz loop readable.

Released under the MIT License.