imgui_drain_events
Process pending native UI events in bounded batches, returning events, remaining queue depth, and dropped event count to manage input flow effectively.
Instructions
Drain a bounded batch of native UI events. Returns the events, remaining queue depth, and the number dropped since the previous drain.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "imgui_drain_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_events | No | Maximum events to return (default 100, maximum 256) |