game
Control FPS games by clipping cursor to center, moving camera with pixel offsets, and sending keep-alive signals. Use with keyboard and mouse actions for WASD and shooting.
Instructions
Game mode for FPS-style control. action: start (clip cursor to center) | move (relative camera look by dx,dy pixels * sensitivity) | stop | heartbeat (keep-alive during long holds). Combine with keyboard() down/up for WASD and mouse(action='down'/'up') for shooting/building.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| action | Yes | ||
| sensitivity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |