I'm using the latest ControlP5 library (v.2.2.5) in Processing 2.2.1 for an old piece of code.
I got the following error:**The function window() does not exist**

However, the same code runs correctly in Processing 2.2.1 using an early version of ControlP5(v.2.0.4). So, may I ask what has been changed for ControlP5.window().isMouseOver() method? and how to fix the code to run it using the latest ControlP5 library in both Processing 2.2.1 and 3.0.2?
Thank you very much!