Push Button Class Implementation and usage.

Hi there!
I wrote some simple class (or library) for creating and abstraction of a Push Button. It works but actually I don't know how to handle a change detection from outside the class. It works from the inside only printing the "clicked" messsage when it detects the change but if you call the methode from a conditional and print a message it gots print for every iteration while you have the button pressed! I must be doing something wrong! Help me!
I'm attaching the library with an example in the examples folder!
Thanx!

Button.zip (4.17 KB)