pran1
04-14-2004, 03:01 AM
Hi! I was wondering if someone could help me here. I have drwan a mouse cursor and I am using up arrow key to move it apasrt from the windows mouse. But till the time I dont move the windows mouse the cursors dont actually move apart is there anyways I can make them interactive.
void Mouse_motion(int x, int y)
{
mouse_current_x = x;
mouse_current_y = y ;
glutPostRedisplay ( );
//printf("x = %d, y = %d", x,y);
}
Mouse_Cursor(mouse_current_x - arrow_x , mouse_current_y - arrow_x, 0);
What I want to do is if I press the up arrow key the two mice should get separated without me having to move the windows mouse. Is this possible and if yes then how?
Many Thanks
Pran
void Mouse_motion(int x, int y)
{
mouse_current_x = x;
mouse_current_y = y ;
glutPostRedisplay ( );
//printf("x = %d, y = %d", x,y);
}
Mouse_Cursor(mouse_current_x - arrow_x , mouse_current_y - arrow_x, 0);
What I want to do is if I press the up arrow key the two mice should get separated without me having to move the windows mouse. Is this possible and if yes then how?
Many Thanks
Pran