modifed the input system API, and updated example.