SETMOUSE on Windows

Previous topic - Next topic

MrTAToad

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...

Minion

Yup, I can confirm this doesnt work on my system either (GLB 10.231)

spacefractal

#2
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kitty Hello

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?

MrTAToad

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.

spacefractal

#5
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

#6
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 :)