03-24-2005, 06:00 PM
I'm running Debian sid with FB .12, and after I issue a SCREEN statement, everything works except the mouse -- using the getMouse Routine doesn't give the coordinates of the mouse, and actually causes my program to freeze.
Here's some sample code I used to test:
The mouse code works well in Windows. Has anyone run into this? Any suggestions of fixing it?
Here's some sample code I used to test:
Code:
CONST LEFTBUTTON = 1
CONST MIDDLEBUTTON = 2
CONST RIGHTBUTTON = 4
CONST SHOWMOUSE = 0
CONST HIDEMOUSE = 1
SCREEN 12
CanExit = 1
DO WHILE CanExit <> 0
GETMOUSE CurrentX, CurrentY, , MouseButtons
IF CurrentX < 0 THEN
PRINT "Mouse is out of context."
ELSE
PRINT USING "Mouse position: ###:### Buttons: "; CurrentX; CurrentY;
IF MouseButtons AND LEFTBUTTON THEN PRINT "L";
IF MouseButtons AND MIDDLEBUTTON THEN PRINT "R";
IF MouseButtons AND RIGHTBUTTON THEN PRINT "M";
END IF
LOOP
The mouse code works well in Windows. Has anyone run into this? Any suggestions of fixing it?