Page 1 of 1

CGDisplayMoveCursorToPoint() ?

Posted: Wed Jul 26, 2017 12:08 pm
by Wolfram
Why does it set my mouse to the upper left corner and not as aspected to position 500?

Code: Select all

ImportC ""
;   CGDisplayMoveCursorToPoint(display.l, *point.CGPoint)
  CGDisplayMoveCursorToPoint(display.l, x.f, y.f)
  CGMainDisplayID()
EndImport

position.CGPoint

position\x = 500
position\Y = 500

; CGDisplayMoveCursorToPoint(CGMainDisplayID(), @position)
CGDisplayMoveCursorToPoint(CGMainDisplayID(), 500, 500)

Re: CGDisplayMoveCursorToPoint() ?

Posted: Wed Jul 26, 2017 2:36 pm
by Wolfram
I got it. :-)

Code: Select all

ImportC ""
  CGDisplayMoveCursorToPoint(display.l, x.CGFloat, y.CGFloat)
  CGMainDisplayID()

EndImport


CGDisplayMoveCursorToPoint(CGMainDisplayID(), 500.0, 500.0)