mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Capture the cursor while dragging, oops.
This commit is contained in:
@@ -323,6 +323,7 @@ bool SimpleGLWindow::DragStart(int mouseX, int mouseY) {
|
||||
}
|
||||
|
||||
dragging_ = true;
|
||||
SetCapture(hWnd_);
|
||||
dragStartX_ = mouseX - offsetX_;
|
||||
dragStartY_ = mouseY - offsetY_;
|
||||
dragLastUpdate_ = GetTickCount();
|
||||
@@ -352,6 +353,7 @@ bool SimpleGLWindow::DragEnd(int mouseX, int mouseY) {
|
||||
}
|
||||
|
||||
dragging_ = false;
|
||||
ReleaseCapture();
|
||||
Redraw();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user