Use raw input on Minecraft 1.12.2 . Make mouse input feel smoother and fix mouse jittering.
credit to DALL-E and OpenAI