Send mouse movements to Minecraft using python on Mac OS X


I’m currently trying to use python to play Minecraft. However, I’m having issues with simulating the right kind of mouse movements on my Mac.


The movement in the game seems to work based off of the mouse movement, not cursor location. For example, you can move the mouse infinitely to the left and still see interaction in the game – it never hits an edge. The libraries that I’ve tried, don’t seem to mimic the right behavior.

I’ve tried PyUserInput’s mouse library, and methods that I found on various blogs including and and many other posts on stackoverflow for example How to control the mouse in Mac using Python?. None of them worked for me.

Does anyone have any suggestions for what i should do.