For some reason I get wrong mousepointer positions with pynput.
The 0,0 position is right and the 1920x1080 position is right but in between there is an error of around 100px.
from pynput.mouse import Listener
def on_click(x, y, button, pressed):
if pressed:
print("Mouse clicked at ({0}, {1}) with {2}".format(x, y, button))
with Listener(on_click=on_click) as listener:
listener.join()