Skip to main content

NumberToInputKeyUtils

Maps a number to a set of inputs. Useful for shortcut codes in menus.

Functions

getInputsForNumber

NumberToInputKeyUtils.getInputsForNumber(numbernumber) → {Enum.KeyCode}

Retrieves inputs for a given number.

getNumberFromKeyCode

NumberToInputKeyUtils.getNumberFromKeyCode(keyCodeKeyCode) → number

Retrieves number from keyCode

getAllNumberKeyCodes

NumberToInputKeyUtils.getAllNumberKeyCodes() → {Enum.KeyCode}

Returns all number keycodes

Show raw api
{
    "functions": [
        {
            "name": "getInputsForNumber",
            "desc": "Retrieves inputs for a given number.",
            "params": [
                {
                    "name": "number",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ Enum.KeyCode }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 37,
                "path": "src/numbertoinputkeyutils/src/Client/NumberToInputKeyUtils.lua"
            }
        },
        {
            "name": "getNumberFromKeyCode",
            "desc": "Retrieves number from keyCode",
            "params": [
                {
                    "name": "keyCode",
                    "desc": "",
                    "lua_type": "KeyCode"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 48,
                "path": "src/numbertoinputkeyutils/src/Client/NumberToInputKeyUtils.lua"
            }
        },
        {
            "name": "getAllNumberKeyCodes",
            "desc": "Returns all number keycodes",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ Enum.KeyCode }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 59,
                "path": "src/numbertoinputkeyutils/src/Client/NumberToInputKeyUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "NumberToInputKeyUtils",
    "desc": "Maps a number to a set of inputs. Useful for shortcut codes in menus.",
    "source": {
        "line": 5,
        "path": "src/numbertoinputkeyutils/src/Client/NumberToInputKeyUtils.lua"
    }
}