Improved State API, added update(), and added Time.elapsed.
Added support for pointer movement, press, and release events.