Using OnMouseUp() assuming that it will work with touch

Hi,

I have created a game targeting windows 8.1 universal and now windows 10 universal. I have (probably incorrectly used mouse event methods like OnMouseUp() and OnMouseDrag() which until now have worked perfectly well with windows touch devices. With the advent of windows 10, I find that touch still works on windows 8.1 desktops, tablets and phones, but not with the new windows 10 phone emulators. The mouse pointer simulator still works on windows 10 phone emulators. Time for an input re-write?

Thanks!
Dave

I have a little “MicroTouch” lightweight touch class that takes mouse and touches and bundles them up so you can more or less use the same decision logic code without having to keep two copies of it in sync.

https://bitbucket.org/kurtdekker/proximity_buttons

The point of that repository is another UI construct, what I call the “proximity button,” but it has my MicroTouch class in it too. Might get you closer to what you’re looking for.

Sounds perfect thanks!

Just an update in case it is useful to anyone.

The problem appears not to be with OnMouseUp() etc. and touch on windows phone 10 emulators, but is looking more and more like a phone 10 emulator bug. Its happening for XAML apps as well as Unity.

See

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/23ecdd3f-fdcd-452f-be11-8d0ea9bdf1c4/problem-running-a-windowsphone-81-app-on-windows-10-mobile-emulator?forum=wpdevelop#d9c849e6-04df-49af-9dc7-fbb14412655e