Rearrange SDL stuff and add mouse movement.