dosbox_hold_buttons
Hold mouse buttons down for a specified time to drive in-game actions that require a continuously held button, and release early when a memory value signals the sequence has ended.
Instructions
Hold mouse buttons down for a stretch of time by writing the guest's button word continuously -- the way to drive anything that reads a held button, such as an action sequence that only advances while a button is down. Sparse writes lose to the game's own interrupt handler, so this busy-writes. Give stop_when to release as soon as a memory field says the sequence is over, instead of holding for the full time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| buttons | No | 1 left, 2 right, 3 both. | |
| seconds | Yes | Maximum time to hold. | |
| poll_seconds | No | ||
| stop_when_size | No | ||
| stop_when_any_of | No | ||
| stop_when_equals | No | ||
| stop_when_offset | No | Offset or symbol to watch while holding. | |
| stop_when_at_least | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||