Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix erroneous mouse motion when alt-tabbing in CS2 #11460

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 14, 2024

  1. fix errenous delta when warping

    The following changes do not alter any logic:
    - rename x/ydelta fields to x/y_accu to better reflect what it actually is about
    - coalesce the logic for modifying internal state to one spot, branch based on whether the input was a move or a warp
    
    The following changes alter the logic:
    - put the x/y_accu addition under the relative branch only, warps should not add to the accumulation buffer by any definition
    - (MAIN FIX) when the destination window desires relative mode, warp events should be dropped if SDL_MOUSE_RELATIVE_WARP_MOTION is false, or have x/yrel set to zero if true
    expikr committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    0451cf2 View commit details
    Browse the repository at this point in the history
  2. add brace for contitional

    Co-authored-by: Sam Lantinga <[email protected]>
    expikr and slouken authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    d0dc5a2 View commit details
    Browse the repository at this point in the history