Huh? mouse_mode set to four? There are only three values for mouse_mode!
That is:
mouse_mode = 0: no mouse pointer but mouse_force is still influenced by the mouse
mouse_mode = 1: mouse is available for clicking and pointing as well as mouse_force is updated by the movement of the mouse
mouse_mode = 2: mouse is available for clicking and pointing but mouse_force is not updated.
If you want to still have the mouse cursor set mouse_mode to 1 otherwise to 0!
That should at least solve the problem that your mouse movement isn't registered.
greetings
KDuke