Make button events from the API more Processing friendly