GLBasic forum

Main forum => Bug Reports => Topic started by: spacefractal on 2011-Nov-22

Title: SETMOUSE() is broken in v10.179 (Windows 7)? {was not a bug}
Post by: spacefractal on 2011-Nov-22
asthe  subject say, this command suddently not working anymore after a update today, so this command might been broken?

I use Windows 7 64bit as a only platform tested on.
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: fuzzy70 on 2011-Nov-22
Strange, I just tried the setmouse example in the samples directory & all worked fine. That's on Windows 7 32bit, will try a Linux test later.

Lee


Just tested on linux 32 & 64 bit (fedora core) without problems, same thing all tests done with the 10.179 update. Its not a command I have had use for yet
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: spacefractal on 2011-Nov-22
It's only on that update, but testing again later tomorrow....
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: Wampus on 2011-Nov-22
I tried the setmouse example from the samples directory too. I compiled with the new version and the resulting app worked fine on WinXP and Win7 64bit.

spacefractal do you have some example code of your own you know isn't working for you? If you posted it, others could test it on their machines.
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: spacefractal on 2011-Nov-22
the example seen works, but for some reason SETMOUSE() broken in the game. That even I just trying do a SETMOUSE 100, 100 directly before SHOWSCREEN, but it did not reset it to center (which I use it to when "trackpad" control is used). That one time I see the pointer actuelly reset to center is just after a loading, wierd.....

By now I cannot show the example but seen if I can reproduce this bug. Its somewhere mystery because I think some other command effect it. I also tried to degrade version and clean temp folder... now its not work, so its mystery by now why.

PS. same happens on OSX as well.
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: MrTAToad on 2011-Nov-22
Dont forget that SETMOUSE doesn't affect the system pointer (ie its only the coordinates that get set and not the pointer)...
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: spacefractal on 2011-Nov-22
Pointer is set here when it works, elsewise its impossible to use mouse as a analog joystick (because it's world stop as the edge which I not interested in).

I can clearly see the system pointer was set in example.
Title: Re: SETMOUSE() is broken in v10.179 (Windows 7)?
Post by: spacefractal on 2011-Nov-22
I found was it was happens. Both command (other was SYSTEMPOINTER of course) works as they should (I of course disable it when analog mouse control is used).

When I used SETMOUSE() I have simply not send it to the mouse cords variables used, which was still on the old xy, so when I Limit the mouse (just before mouse status check) to only move on the primary screen, its have override SETMOUSE() completly with no effect.

Its something like that I have in mind because I have dual screen setup and I dont like when apps send back to desktop when clicking outside in fullscreen in games.

PS. The example should do update to fix the warnings when missing LOCAL or GLOBAL throught as well some document its only works when SYSTEMPOINTER is off (which does make very seance, so no worry). So more now, its only a minor document issue.

PPS. Move this thread to GlBasic EN eventuelly.