Is there any interest in putting my new library on the wiki:
The library does this:
This library allows a momentary switch to function as an on/off toggle switch by checking for button press and changing the button state (and handles button bounce). This library also adds a method for delays that also checks for button presses during the delay.
The library has a C++ interface.