/// Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
/// is outside the window.
Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
is outside the window.
Release mouse input stopping windows on this thread from receiving mouse input when the cursor is outside the window .
unsafe fn release_mouse(window_state: &mut WindowState) {
    window_state.mouse.buttons_down = window_state.mouse.buttons_down.saturating_sub(1);
    if window_state.mouse.buttons_down == 0 {
        winuser::ReleaseCapture();
    }
}
unsafe fn release_mouse ( window_state : & mut WindowState ) { window_state . mouse . buttons_down = window_state . mouse . buttons_down . saturating_sub ( 1 ) ; if window_state . mouse . buttons_down == 0 { winuser :: ReleaseCapture ( ) ; } }
Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
is outside the window.
Release mouse input stopping windows on this thread from receiving mouse input when the cursor is outside the window .
window_state
&mut WindowState