How to implement a similar pulseIn API for FW 0.4.6?

0.4.9 has been released

button_status is called while the button is being pressed. there’s also button_click which is sent after the button is released.