Fixed the horrible mouse input and cursor rendering code. THIS IS ACTUALLY STARTING TO LOOK LIKE A GAME. (See previous commits for caps lock reason).