Skip to main content

CameraGamepadInputUtils

Utility classes to work with gamepad thumbsticks

Functions

outOfDeadZone

CameraGamepadInputUtils.outOfDeadZone(inputObjectInputObject) → boolean

Returns true if the input is outside the deadzone.

@param inputObject InputObject
@return boolean

gamepadLinearToCurve

CameraGamepadInputUtils.gamepadLinearToCurve(thumbstickPositionVector2) → Vector2

Converts a thumbstick position to a curve space.

Show raw api
{
    "functions": [
        {
            "name": "outOfDeadZone",
            "desc": "Returns true if the input is outside the deadzone.\n\n\t@param inputObject InputObject\n\t@return boolean",
            "params": [
                {
                    "name": "inputObject",
                    "desc": "",
                    "lua_type": "InputObject"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 46,
                "path": "src/camera/src/Client/Controls/CameraGamepadInputUtils.lua"
            }
        },
        {
            "name": "gamepadLinearToCurve",
            "desc": "Converts a thumbstick position to a curve space.",
            "params": [
                {
                    "name": "thumbstickPosition",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 58,
                "path": "src/camera/src/Client/Controls/CameraGamepadInputUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "CameraGamepadInputUtils",
    "desc": "Utility classes to work with gamepad thumbsticks",
    "source": {
        "line": 6,
        "path": "src/camera/src/Client/Controls/CameraGamepadInputUtils.lua"
    }
}