local path = (...):match('(.-)[^%./]+$')

return {
    name = 'touch',
    description = 'Provides an interface to touch-screen presses.',
    types = {
    },
    functions = {
        {
            name = 'getPosition',
            description = 'Gets the current position of the specified touch-press, in pixels.',
            variants = {
                {
                    description = 'The unofficial Android and iOS ports of LÖVE 0.9.2 reported touch-press positions as normalized values in the range of 1, whereas this API reports positions in pixels.',
                    arguments = {
                        {
                            type = 'light userdata',
                            name = 'id',
                            description = 'The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values.',
                        },
                    },
                    returns = {
                        {
                            type = 'number',
                            name = 'x',
                            description = 'The position along the x-axis of the touch-press inside the window, in pixels.',
                        },
                        {
                            type = 'number',
                            name = 'y',
                            description = 'The position along the y-axis of the touch-press inside the window, in pixels.',
                        },
                    },
                },
            },
        },
        {
            name = 'getPressure',
            description = 'Gets the current pressure of the specified touch-press.',
            variants = {
                {
                    arguments = {
                        {
                            type = 'light userdata',
                            name = 'id',
                            description = 'The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values.',
                        },
                    },
                    returns = {
                        {
                            type = 'number',
                            name = 'pressure',
                            description = 'The pressure of the touch-press. Most touch screens aren\'t pressure sensitive, in which case the pressure will be 1.',
                        },
                    },
                },
            },
        },
        {
            name = 'getTouches',
            description = 'Gets a list of all active touch-presses.',
            variants = {
                {
                    description = 'The id values are the same as those used as arguments to love.touchpressed, love.touchmoved, and love.touchreleased.\n\nThe id value of a specific touch-press is only guaranteed to be unique for the duration of that touch-press. As soon as love.touchreleased is called using that id, it may be reused for a new touch-press via love.touchpressed.',
                    returns = {
                        {
                            type = 'table',
                            name = 'touches',
                            description = 'A list of active touch-press id values, which can be used with love.touch.getPosition.',
                            arraytype = 'light userdata',
                        },
                    },
                },
            },
        },
    },
    enums = {
    },
}