Join GitHub today
Function to set mouse exclusivity for a window in Pyglet #898
This function binds the mouse to a window (and makes the cursor invisible). The use-case would be a multi-monitor setting where the participants need to click to respond. Without using a function like this, the cursor can be moved out of the region of the experiment.