A callback function which gets ran when you scroll the mouse wheel. It also provides horizontal scrolling functionality by holding shift.
- direction_x [number]: the scroll direction in the
- direction_y [number]: the scroll direction in the
local y_scroll = 0 function c3d.wheelmoved(dx,dy) y_scroll = y_scroll + dy end