# Native Aen mouse and shortcut capture
KnottVM uses KnottCompositor's native Aen input permissions. Existing VM
definitions keep the absolute USB tablet, which needs no pointer capture or
desktop shortcut inhibition.
To use relative mouse input, configure a **stopped** VM, then open it in your
existing Aen desktop session:
```sh
knottvm configure NAME --pointer-device mouse
knottvm run NAME
```
For a VM already running, use `knottvm console NAME`. When QEMU reports relative
mouse mode and the console gains focus, KnottVM requests pointer lock. After the
compositor grants that lock, it requests desktop shortcut inhibition. The
compositor decides whether to grant each permission. If shortcut inhibition is
denied, relative mouse input remains usable and desktop shortcuts remain active.
- **Escape** releases captured input, desktop shortcuts, and held guest keys or
buttons. Escape also cancels a capture request waiting for a reply.
- **Ctrl+Alt+Escape** is the compositor's reserved physical escape chord. It
revokes shortcut inhibition and pointer capture even while shortcuts are
inhibited.
- **Click inside the focused console** to request capture again. Returning focus
or changing guest mouse mode does not automatically reacquire it. The
compositor also rejects immediate regrant after its escape chord; synthetic
control clicks cannot clear that protection.
Focus loss, leaving the window, a new window configuration, losing relative
mouse mode, or disconnection release guest input. Uncaptured mouse movement and
clicks remain usable. To restore the default, stop the VM and run:
```sh
knottvm configure NAME --pointer-device tablet
```
Private socket tests cover permission grants, denial, revocation, late replies,
frame/request credit, and release/retry ordering. The
[software compositor smoke](../scripts/native-compositor-smoke/README.md) checks
real native composition, tiling, workspace changes, and console cleanup using a
mock RFB peer. Physical keyboard/mouse, GPU scanout, and real guest boot
qualification remain separate release checks.