Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Get Touched Coordinate

$
0
0

I watched an informative Xamarin University video on Forms Renderers - however, I think what i'm looking to do is reverse. I would like the obtain the touch coordinates of the object. I'm porting code from Xamarin.Android and Xamarin.iOS to Xamarin.Forms. The code from those two projects have Touch events, which keep track of the coordinates of touch to simulate a joystick.

When the user touches the object, the location is stored. As the user slides their finger away from the object, the distance between the starting coordinate is used to calculate a speed for the virtual joystick.

With Xamarin.Forms, i am unable to find a touch event or method to query the touched coordinates. Additionally, i am unable to create an event in a renderer and have it throw back in the .Forms world. What solutions do i have to my problem?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>