Add an event to be fired when the given button changes.
The code of the button to add the event to.
The function to call when the button state changes.
See Implementation
Add an event to be fired when the given button changes.