Skip to content

lightgun-poc / server / InputMode

Type Alias: InputMode ​

InputMode = "auto" | "native" | "gnome" | "none"

Defined in: server.ts:111

Where aim ends up:

  • native — the real cursor, via libnut.
  • gnome — the real cursor on GNOME Wayland, via Mutter's remote-control D-Bus API (lib/gnome); fails loudly when GNOME does not offer it.
  • none — virtual devices that print the cursor position instead (headless boxes, containers, SSH; also handy for watching what the phone sends).
  • auto — gnome on a Wayland session (libnut cannot move the cursor there), else native when a display exists, none otherwise. Never reaching the addon without a display is the point: it aborts the process.

Released under the MIT License.