Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GETMOUSE doesn't get the mouse under Debian Linux?
#1
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:
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?
Reply
#2
Known bug, already fixed in CVS.
Either get a fresh CVS snapshot of gfxlib and compile it yourself, either wait 0.13...
ngelo Mottola - EC++
Reply
#3
Thanks a lot!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)