GLBasic forum

Main forum => Bug Reports => Topic started by: Qedo on 2015-Aug-28

Title: V14.006 - don't work SETMOUSE in PRESCALER condition
Post by: Qedo on 2015-Aug-28
It seems don't work SETMOUSE in PRESCALER condition (V14.006), without the command SYSTEMPOINTER TRUE
Try the example  and after, commenting "SYSTEMPOINTER TRUE".

Code (glbasic) Select

GETDESKTOPSIZE sx,sy
SETSCREEN sx,sy,1

SYSTEMPOINTER TRUE // if comment this line don't work SETMOUSE in PRESCALER condition
xfactor=3
xs=sx/xfactor
ys=sy/xfactor
PRESCALER xs,ys

   WHILE TRUE
      DRAWRECT 100, 100, 300, 100, RGB(255, 255, 0)
      LimitMouse(100, 100, 400, 200)
      PRINT "<=", mx, my
      IF b1 THEN END
      SHOWSCREEN
   WEND

FUNCTION LimitMouse: minx, miny, maxx, maxy
   MOUSESTATE mx, my, b1, b2
   PRINT mx+" "+my,0,0
   IF mx<minx THEN mx=minx
   IF mx>maxx THEN mx=maxx
   IF my<miny THEN my=miny
   IF my>maxy THEN my=maxy
   SETMOUSE mx, my
ENDFUNCTION


Title: Re: V14.006 - don't work SETMOUSE in PRESCALER condition
Post by: Qedo on 2015-Sep-10
has anyone checked?
any comments?
Title: Re: V14.006 - don't work SETMOUSE in PRESCALER condition
Post by: spacefractal on 2015-Sep-10
http://www.glbasic.com/forum/index.php?topic=10437.0
Title: Re: V14.006 - don't work SETMOUSE in PRESCALER condition
Post by: Qedo on 2015-Sep-10
yes but don't find any SETMOUSE issue in that thread
Title: Re: V14.006 - don't work SETMOUSE in PRESCALER condition
Post by: erico on 2015-Sep-10
It got spread between threads and posts, so it is good that this is here and a direct title at the problem.
I think there are also other problems with prescaler too.