mouseWheel function -> event.WheelDelta is not working

I tried using the example provided on the p5 page (, but it tells me "ReferenceError: event is not defined", which makes sense, but I don't know how to define event in order to get the WheelDelta information.

I tried doing function mouseWheel(MouseEvent event){}, but it's not working.

Does somebody have a solution for this?


Sign In or Register to comment.