Button Callback Example

Uses collidePointRect() to detect if a user is inside a rect, if inside and clicked, executed the specified callback function.


        loading...