キー押下(保持)
dx12_key_downSimulate holding a key down for continuous input. Use with a key name or VK code to test press-and-hold behaviors in game playback.
Instructions
キーを押した状態にする(key_up を呼ぶまで保持)。次フレーム以降の Lua input:isKeyDown / keyDown() が true になる。横移動など「押しっぱなし」の挙動確認に。key は VK 整数 or 名前("W","D","SPACE","UP" 等)。Playing 中に使う(isAsyncKeyDown 系には効かない)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "dx12_key_down"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | VK コード(int)か キー名("W","SPACE","UP","F1" 等) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |