well...i'm not sure what's wrong, but try to remove that while loop from main ::: while(1)
{
input_scan();
move_camera();
wait(1);
}
}


and in both of those function add loop inside of them...



Ubi bene, ibi Patria.