Select to view content in your preferred language

How to track mouse movement while ArcGIS Pro tools are active?

138
0
3 weeks ago
HannahBernal
Occasional Contributor

Hello,

I am using the ArcGIS Pro 3.3 SDK and want to detect when a mouse moves in ArcGIS Pro's mapView. From what I understand, this can be done by using a custom map tool that has overridden the OnToolMouseMove() method. However, we would like to track mouse movement while using ArcGIS Pro's default tools. For example, if the user selects a feature layer that activates the Pro's create feature tool, we want to still be able track the mouse movement while the user creates features.

In addition, without using a custom map tool, would it be possible to get the current mouse location like ArcObject's IMxDocument's get_CurrentLocation()?

Thank you in advance,

Hannah

0 Replies