SETMOUSE() is broken in v10.179 (Windows 7)? {was not a bug}

Previous topic - Next topic

spacefractal

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

fuzzy70

#1
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
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

spacefractal

It's only on that update, but testing again later tomorrow....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Wampus

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.

spacefractal

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

MrTAToad

Dont forget that SETMOUSE doesn't affect the system pointer (ie its only the coordinates that get set and not the pointer)...

spacefractal

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

spacefractal

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