while (1)
{
camera.pan -= mouse_force.x;
camera.tilt += mouse_force.y;
if (key_w) camera.x -= 3*time_step;
if (key_s) camera.x += 3*time_step;
if (key_a) camera.y += 3*time_step;
if (key_d) camera.y -= 3*time_step;
wait(1);
}
This should work
(at work so I ain't real sure. Make sure mouse_mode is set to the proper mode though. Maybe someone else can verify this for you. Sorry I can't be more help.