mit-cml/appinventor-sources — pull request #102 by viable-hartman (2014-05-08 09:24:00+00:00)
Title: Modified onTouch event such that a Button can be treated as a Press and ...

...Release type button instead of simply a Click type. This allows creating buttons that can be used to call start and stop functions on Press and Release respectively.

Place a button on the screen and check its isPressRelease property to change the button's onTouch behavior to fire Press and Release events. Place "When Press" and "When Release" blocks in the the blocks designer to capture and execute code upon such events.