GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2012-Mar-23

Title: SETMOUSE on Windows
Post by: MrTAToad on 2012-Mar-23
Doesn't appear to do anything...

Code (glbasic) Select
SYSTEMPOINTER TRUE
WHILE TRUE

SETMOUSE 0,0
SHOWSCREEN
WEND


Still lets the system pointer move everywhere...
Title: Re: SETMOUSE on Windows
Post by: Minion on 2012-Mar-23
Yup, I can confirm this doesnt work on my system either (GLB 10.231)
Title: Re: SETMOUSE on Windows
Post by: spacefractal on 2012-Mar-23
confirmed, not also in fullscreen too (which here its should work).

I mean have seen that before, so you could just add your own pointer and use that to LIMIT the mouse. Its the best way and also its would hold in the area, even when using dual screen.
Title: Re: SETMOUSE on Windows
Post by: Kitty Hello on 2012-Mar-23
this command is for setting the mouse coords when you have SYSTEMPOINTER FALSE. I don't know if it's of any value anymore. Moving the system pointer is not a good idea to implement, is it?
Title: Re: SETMOUSE on Windows
Post by: MrTAToad on 2012-Mar-23
Ah - it's still a problem with SYSTEMPOINTER FALSE as well :)

It can be useful limiting (any) pointer, especially when using MOUSEAXIS as you dont want the mouse to escape the play area.
Title: Re: SETMOUSE on Windows
Post by: spacefractal on 2012-Mar-23
Moving system pointer by app with TRUE is never good, but in FULLSCREEN howover its would been much more mean to prevent moving mouse outside game.....

Howover its absolutte annoyring a click outside the game window minimize the game, and even much more annoying in dual screen setup. Even with SETMOUSE, you can still click outside window if you are fast, which is pretty much annoyring.

But in windowred mode its should not work of course.
Title: Re: SETMOUSE on Windows
Post by: MrTAToad on 2012-Mar-24
It is also needed to position a pointer for menus and what-not...  Ie, you certainly dont want a pointer over the quit option when a program starts :)