From: Nguyen, Tien (Tien.Nguyen++at++dsto.defence.gov.au)
Date: 07/08/2002 20:06:27
hi pf
i am trying to control the mouse cursor using pfuDrawPWin2DCursor()
Is this function meant to be used to position the mouse cursor at a
particular place?
if so, i can't seem to make it move? have someone found the solution for
this?
does this have something to do with the underlying operating system?
any suggestion is appreciated.
regards
tien
/****code segment****/
{
static int x_mouse=-40, y_mouse=-40;
static int first = 1;
static Cursor cursor;
if(first){
cursor = pfuCreateCursor(0);
pfuCursor(cursor,0);
pfuLoadPWinCursor( pwin, 0);
first=0;
}
x_mouse += 5;
y_mouse += 5;
printf("Moving the mouse cursor: x_mouse = %d, y_mouse = %d\n",
x_mouse, y_mouse);
pfuLoadPWinCursor( pwin, 0);
pfuDrawPWin2DCursor( pwin, x_mouse, y_mouse);
}
This archive was generated by hypermail 2b29 : Mon Jul 08 2002 - 20:14:15 PDT