Skip to content

Commit

Permalink
set x/y to zero when no capture
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmanLP committed Dec 22, 2024
1 parent ee65d7f commit a272e1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ static void gfx_dxgi_get_mouse_delta(int32_t* x, int32_t* y) {
*x = p.x - dxgi.current_width / 2;
*y = p.y - dxgi.current_height / 2;
SetCursorPos(dxgi.current_width / 2, dxgi.current_height / 2);
} else {
*x = 0;
*y = 0;
}
}

Expand Down

0 comments on commit a272e1a

Please sign in to comment.