Mouse Cursor Capture

Hi again. I tried the following:

this->window = this->framework.open_window();
WindowProperties wp = this->window->get_graphics_window()->get_properties();
wp.set_mouse_mode(WindowProperties::M_relative);	this->window->get_graphics_window()->set_properties_now(wp);

However this had absolutely no effect on the mouse cursor. Am I doing something wrong?

Also, for ThomasEgi’s suggestion, if I do this will it mess up the GUI input? Because the mouse cursor will always be in the middle of the window?

Thanks again.