doesn't the mouse_mode variable control that?
like:

mouse_mode = 1;

or something?

(I dunno, just thinking)
Hope this helps!

Best Regards, and be good!
Scyre