Show raw api
{
"functions": [
{
"name": "button",
"desc": "Gets a button by id\n\n### Buttons\n| Name | Description |\n|----------------|--------------------------|\n| Up | Up direction |\n| Down | Down direction |\n| Left | Left direction |\n| Right | Right direction |\n| Dash | Dash ability |\n| Special | Special ability |\n| Aim | Aim button |\n| Kick | Red attack |\n| Snare | Yellow attack |\n| Status | Status information |\n| Map | Map overview |\n| Menu | Pause menu |\n| Coin | Arcade coin insertion |\n| Service | Arcade service mode |\n| MenuUp | Menu up direction |\n| MenuDown | Menu down direction |\n| MenuLeft | Menu left direction |\n| MenuRight | Menu right direction |\n| MenuPrimary | Menu select |\n| MenuSecondary | Menu alternative select |\n| MenuBack | Menu backwards |\n| AnyKey | Virtual any key |",
"params": [
{
"name": "id",
"desc": "button name identifier",
"lua_type": "string"
}
],
"returns": [
{
"desc": "button input instance",
"lua_type": "InputRef"
}
],
"function_type": "static",
"source": {
"line": 39,
"path": "../../res/data/script/lib/system/input.lua"
}
},
{
"name": "analog",
"desc": "Gets a analog by id\n\n### Analogs\n| Name |\n|----------------|\n| TargetX |\n| TargetY |\n| MoveX |\n| MoveY |",
"params": [
{
"name": "id",
"desc": "analog name identifier",
"lua_type": "string"
}
],
"returns": [
{
"desc": "analog input instance",
"lua_type": "InputRef"
}
],
"function_type": "static",
"source": {
"line": 57,
"path": "../../res/data/script/lib/system/input.lua"
}
}
],
"properties": [],
"types": [],
"name": "Input",
"desc": "The input interface",
"source": {
"line": 5,
"path": "../../res/data/script/lib/system/input.lua"
}
}