[racket] 'Capturing' the mouse / fix mouse position

From: Peter Braun (peter-braun at gmx.net)
Date: Mon Mar 4 13:31:26 EST 2013

Hi,

you could do it with SDL (sdl-warp-mouse). But this would require you to 
create the Game Window also with SDL.

You can find a SDL binding here: https://github.com/pb82/sdl4racket.

On 04.03.2013 11:29, Philipp Dikmann wrote:
> Hi,
>
> Is there a way to 'fix' the mouse position, e.g. put the cursor to a 
> specific position programatically?
> I could not quite make it out from the mouse-event documentation - 
> guess they're just the receiving end of things.
> I'd like to keep the cursor inside of a game window even during 
> 'hectic' moments ;)
>
> Thanks,
> Philipp
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130304/f59e90bd/attachment.html>

Posted on the users mailing list.