Skip to content

Conversation

Fernando-A-Rocha
Copy link
Contributor

@Fernando-A-Rocha Fernando-A-Rocha commented Jan 13, 2023

This PR makes the freecam (used mainly by map editor) ignore all mouse & key input when the MTA window is not focused, using the new https://wiki.multitheftauto.com/wiki/IsMTAWindowFocused function (since 1.5.9 r21313).
Meta.xml min_mta_version client updated.

This corrects the annoying behavior that you could reproduce by doing this:

  1. play in windowed mode
  2. open an application like calculator or another window, place it ontop of MTA window
  3. pass your mouse on the MTA window, freecam would go crazy

@Fernando-A-Rocha
Copy link
Contributor Author

suggested by @Lpsd

@jlillis jlillis merged commit 316f536 into multitheftauto:master Jan 16, 2023
@Fernando-A-Rocha Fernando-A-Rocha deleted the fix-freecam-window-focus branch January 16, 2023 21:54
@patrikjuvonen patrikjuvonen added this to the 1.6.0 milestone Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants