Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cpp/source/features/callbacks_and_UIs.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ if (io.MouseClicked[0]) { // if the left mouse button was clicked
glm::vec3 worldRay = polyscope::view::screenCoordsToWorldRay(screenCoords);
glm::vec3 worldPos = polyscope::view::screenCoordsToWorldPosition(screenCoords);
std::pair<polyscope::Structure*, size_t> pickPair =
polyscope::pick::evaluatePickQuery(screenCoords.x, screenCoords.y);
polyscope::pick::evaluatePickQuery(
io.DisplayFramebufferScale.x * screenCoords.x,
io.DisplayFramebufferScale.y * screenCoords.y);

// print some values
std::cout << " io.MousePos.x: " << io.MousePos.x << " io.MousePos.y: " << io.MousePos.y << std::endl;
Expand Down