Added blocking Buttonpad_waitEvent() which returns an nonzero event.