YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

In-Game: [Windows] Left Pressed and Down events are incorrectly triggered when pressing right/middle mouse buttons in 2024.8.0 runtime #7506

Closed gm-bug-reporter[bot] closed 1 month ago

gm-bug-reporter[bot] commented 1 month ago

Description

Clicks on an object's sprite will only cause the Left Down mouse event to fire, regardless of if it was left, right, or middle mouse buttons that were pressed. Global clicks work correctly.

Here, I click and hold the right mouse button: image

Steps To Reproduce

  1. Start GameMaker and import the sample inside Dan's sample
  2. Run the game for Windows VM
  3. Click anywhere on the sprite using either your middle or right buttons
  4. Observe the text shows that your Left Pressed and Left Down event fired rather than the correct right/middle ones.
  5. Observe the text shows that the correct Global ... event fires each time.

Which version of GameMaker are you reporting this issue for?

IDE v2024.8.0.169 Runtime v2024.8.0.216

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

Which platform(s) are you seeing the problem on?

Windows

9a7a3330-e4de-4f5e-a0bb-95fbe70fc9d5

ocanaday commented 1 month ago

I'm encountering the same problem with this latest IDE

not only does the right mouse button trigger the left mouse button event, but ALSO the middle button

YYDan commented 1 month ago

Confirmed - clicks on the object's sprite (but not global ones) are not triggering correctly.

I have added a sample project and proper repro steps now.

YYDan commented 1 month ago

Extended the sample to show mouse_check_button_pressed() works correctly also - it is just the Pressed and Down events.

arrosev commented 1 month ago

After I switched back to the on runtime 2024.6.1.208, the error seems to have disappeared, but I'm not sure if there are any other pitfalls of using an older version of the runtime with the 2024.8.0.169 version of the IDE.

YYDan commented 1 month ago

Not really - obviously, you won't get all of the other bug fixes in 2024.8, but if that works for you just now then it is reasonable to use an older runtime with a newer IDE any time you need to.

L-Clouds commented 1 month ago

Scheduled for 2024.10? Surely, this warrants a hotfix release? Has now been re-scheduled for a 2024.8.1 👍

Rickard22 commented 1 month ago

Indeed, leaving such fundamental events broken for 2 months?

genetix307 commented 1 month ago

I'd think this would be a hotfix as well - Breaks functionality in almost all of my existing production releases, I have to use the new version as well for the fix it included to Admob interstitials locking the screen up.

jhalek90 commented 1 month ago

hotfix? using the older runtime is sufficient for now, but many newer users will not understand.

genetix307 commented 1 month ago

Using the older runtime isn't a great solution, at least for myself as this patch fixed a game crashing bug that existed when calling Interstitial ads from Admob.

YYDan commented 1 month ago

Works correctly again in IDE v2024.8.1.171 Runtime v2024.8.1.218. Verifying.