79 lines
1.2 KiB
JSON
79 lines
1.2 KiB
JSON
[
|
|
{
|
|
"requestId": "init",
|
|
"command": "initialize",
|
|
"params": {
|
|
"protocolVersion": {
|
|
"major": 1,
|
|
"minor": 0
|
|
},
|
|
"requiredCapabilities": [
|
|
"advance",
|
|
"capture",
|
|
"cancel"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"requestId": "boot",
|
|
"command": "boot",
|
|
"params": {
|
|
"path": "/cartridge"
|
|
}
|
|
},
|
|
{
|
|
"requestId": "reset",
|
|
"command": "reset",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "input",
|
|
"command": "set_input",
|
|
"params": {
|
|
"right": true,
|
|
"touch": true,
|
|
"touchX": 123,
|
|
"touchY": 45
|
|
}
|
|
},
|
|
{
|
|
"requestId": "clear",
|
|
"command": "clear_input",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "advance",
|
|
"command": "advance",
|
|
"params": {
|
|
"frames": 60
|
|
}
|
|
},
|
|
{
|
|
"requestId": "capture",
|
|
"command": "capture",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "get_state",
|
|
"command": "get_state",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "get_fault",
|
|
"command": "get_fault",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "shutdown",
|
|
"command": "shutdown",
|
|
"params": {}
|
|
},
|
|
{
|
|
"requestId": "cancel",
|
|
"command": "cancel",
|
|
"params": {
|
|
"targetRequestId": "advance"
|
|
}
|
|
}
|
|
]
|