frametop

Keyboard, mouse, pointer and display power

The testbench drives Frametop’s desktop through Frametop’s own control sockets, the way its devices and tools do. Nothing here touches SteamVR’s inputs: for controllers and the HMD, see controller inputs.

These act on the live desktop and the headset’s displays. Don’t run them while someone else wears the headset, and turn the displays back on (power on) if you turned them off.

./frame-testbench keyboard keys ctrl+l enter    # each combination pressed and let go in turn
./frame-testbench keyboard type -- 'hello world'   # typed where typing goes, as Frametop Voice types
./frame-testbench mouse move -200 40            # mouse counts, +x right, +y down
./frame-testbench mouse move 300 0 --drag left  # hold a button through the move
./frame-testbench mouse click                   # left; or right, middle, back, forward; --count 2
./frame-testbench mouse scroll -3               # wheel notches, + up; --horizontal for + right

./frame-testbench pointer state                 # head, gaze mode, worn or not
./frame-testbench pointer overlays              # SteamVR's overlays: key, name, visible
./frame-testbench pointer measure KEY           # a visible overlay's centre, size and axes
./frame-testbench pointer show|hide|recenter    # the 3D mouse's cursor

./frame-testbench power status                  # displays on, off or away; idle and timeout seconds
./frame-testbench power off|on

The MCP tools are keyboard_keys, keyboard_type, mouse_move, mouse_click, mouse_scroll, pointer_state, pointer_control, overlay_list, overlay_measure and display_power (see MCP setup and tools).

How it works

All are abstract datagram sockets: nothing listens on the network. The relay takes keys, clicks and text only from this user.

Key names

Letters, digits (0-9 are the digit keys), enter, esc, tab, space, backspace, delete, insert, up, down, left, right, home, end, pageup, pagedown, f1-f12, punctuation by evdev name (minus, comma, dot, slash…), the modifiers ctrl, shift, alt, altgr, meta (or super, win) and their left/right forms, and mute, volumeup, volumedown, menu. KEY_ prefixes are fine. Any other key by its evdev code (10 up to 255), except the ones that put the headset to sleep, turn it off, cut its Wi-Fi or Bluetooth, or change its displays (power, sleep, suspend, rfkill, brightness…): logind and PowerDevil act on the relay’s virtual keyboard. A combination joins up to six keys with +: held in order, let go in reverse.

Limits