I can determine the current mouse pointer position with:
from Xlib.display import Display
display = Display()
qp = display.screen().root.query_pointer()
print(qp.root_x, qp.root_y)
How do I get the current mouse button states like left/right button pressed/released via Xlib, too? (Or if this is not possible - why not?)
from Find out mouse button state via Xlib in Python
No comments:
Post a Comment