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

feat(radar): capture mouse wheel for zooming radar #5978

Merged
merged 3 commits into from
Nov 25, 2024

Commits on Nov 25, 2024

  1. feat(radar): capture mouse wheel for zooming radar

    By placing all of the radar drawing routines into a window, the mouse
    wheel is captured and is not passed back to the world view.
    
    The original implementation failed to get this to work properly as the
    wrong API was used for setting the center of the 3D radar. Using
    'setCursorScreenPops()' instead of 'setCursorPos()' has the 3D radar
    background showing up in the correct location even when placed inside a
    window.
    mwerle committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    c585ef1 View commit details
    Browse the repository at this point in the history
  2. feat(radar): tweak sizes and positions

    Radar buttons are now aligned properly with the other buttons on the
    screen.
    
    Also fix the 2D radar being slightly clipped by taking into account its
    line thickness.
    mwerle committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    cbeb0d4 View commit details
    Browse the repository at this point in the history
  3. feat(radar): enable clicking on zoom mode indicator

    Use the zoom mode indicator to also toggle between automatic and manual
    zoom modes for the 3D radar.
    mwerle committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    3d8d2a8 View commit details
    Browse the repository at this point in the history