OSRS Plugin API
    Preparing search index...

    Enumeration POINTER_PRESS

    Event id for pressing a key on the mouse (also triggered by screen touches on mobile devices). Calls the PointerPressCallback.

    -- Create a function
    local pointerPressed = function(p, bt, x, y)
    osrs.printf("Pointer: %i Button: %i move to X: %i Y: %i", p, bt, x, y)
    end
    -- Subscribe to the function
    osrs.Events.subscribe(pointerPressed, osrs.Events.POINTER_PRESS)