look at code to see how to make basic mouse controls
quite easy to do can be used in games give it a try