first of all, you should use mouse_map instead of panel.

function main()
{
....
mouse_map = "your_mouse_BMAP";
mouse_mode = 1;
....
while(1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
}
}

It's the very basic.

Last edited by Jaxas; 02/26/09 17:28.

The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)