Skip to content

lightgun-poc / lib/hotkey / createX11Probe

Function: createX11Probe() ​

createX11Probe(ffi, keys, env): ProbeResult

Defined in: lib/hotkey.ts:231

X11 probe: one XQueryKeymap snapshot (32-byte bitmap of all 256 keycodes) per poll, then bit tests. Unlike libnut, a missing display here is a soft failure — XOpenDisplay returns NULL instead of killing the process.

Parameters ​

ffi ​

Ffi

keys ​

string[]

env ​

Record<string, string | undefined>

Returns ​

ProbeResult

Released under the MIT License.