Is it possible to set cursor position from within OpenCV mouse events?

if that’s a method, and keyboard is an instance of a class with that method, it should be okay.