c3d.wheelmoved

A callback function which gets ran when you scroll the mouse wheel. It also provides horizontal scrolling functionality by holding shift.

arguments

local y_scroll = 0
function c3d.wheelmoved(dx,dy)
    y_scroll = y_scroll + dy
end