ControlP5 Mouse-Over Functions Don't Work
in
Contributed Library Questions
•
2 years ago
Hi,
I'm trying to build a simple GUI using ControlP5 and can't seem to get the built in mouse-over functions to work.
I found some info on this page:
But of those functions listed at the bottom of the page, the only one that works is:
controlP5.window().isMouseOver(). But without being able to directly reference a control it is useless.
When I try to access a control directly, such as with the statement:
controlP5.window(this).isMouseOver(((Textlabel)controlP5.controller("myLabel")));
The compiler responds with: "The method isMouseOVer() is not applicable for the arguments (Textlabel)"
Also, when I try to identify controllers that have received mouse-over events using the statement: controlP5.window(this).getMouseOverList();
the compiler responds with: "The function GetMouseOverList() does not exist".
Any help getting these functions to work would be most appreciated.
Thanks!
Aaron
1