V14.006 - don't work SETMOUSE in PRESCALER condition

Previous topic - Next topic

Qedo

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



Qedo


spacefractal

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Qedo

yes but don't find any SETMOUSE issue in that thread

erico

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.