Does the new UI dpshare commands between mouse and touch? So, drag input for instance, does it work on a mouse and touch input equally? And when will it be fully reccomended for professional releases. I have read it still contains bugs.
THANKS!!!
Does the new UI dpshare commands between mouse and touch? So, drag input for instance, does it work on a mouse and touch input equally? And when will it be fully reccomended for professional releases. I have read it still contains bugs.
THANKS!!!
I’ve tried it on Windows standalone, Android, Windows Store and webplayer.
My personal results are:
Android: touch works well
Windows Store: Buttons work fine. Couldn’t drag sliders with touch, text input doesn’t work at all even with a mouse. Touch keyboard freezes.
Windows Standalone/Webplayer: had some problems with touch not recognising Pointer Up, and not recognising Pointer Down until you drag your finger. On webplayer had some problems with touch going through buttons to the UI element underneath. Worst thing was when the webplayer took control of the cursor and I couldn’t press any of the browser buttons.
So mixed bag. I’m not sure if some of it might be specific to how my touch screen laptop is set up for touch.
I’m assuming they did most of their testing for mobile touch devices which it works well, but not so much testing for PCs with touch screens.
One of the developers told me they have different code bases for mouse and touch and haven’t really made them work together properly yet.
If Unity needs some hints how to get touch and mouse working both together, this is how I do my code:
foreach (Touch touch in Input.touches) {
//touch code
}
if(Input.touchCount==0){
//mouse code
}
Also there is a checkbox on “Touch Input Module” on the “Event System” for “Allow Activation on Standalone”. It doesn’t seem to do much.
So those are bugs that you should report. But thanks. Is it safe to say once fully bug free, I can test on my desktop, with mouse acting as touch?
Hi, I reported the bugs! Not sure when/if they’ll fix them.
It seems a priority.