mouseWheel function -> event.WheelDelta is not working

I tried using the example provided on the p5 page (http://p5js.org/reference/#/p5.Element/mouseWheel), 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?

Answers

Sign In or Register to comment.