Input is Smooth

Also, I think frame tearing is more or less a thing of the past. I
copied some code from stackoverflow to make this happen, and I'm not
proud.