Author Topic: Windows 8.1 (PC) touchscreen issues  (Read 1617 times)

avakai

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Windows 8.1 (PC) touchscreen issues
« on: July 02, 2014, 02:01:48 AM »
I'm using an Asus Transformer Book T100 running Windows 8.1, Unity 4.5, NGUI 3.6.6

The problem is with touch handling. For example, when I tap the button, it will stay in press state until I tap couple times on it again. The UIInput field won't get selected until I press it 3-4 times repeatedly fast. Every time I touch the the OnSelect(true) method gets called(by the UICamera) and as soon as I lift my finger, OnSelect(false) is called. So the textfields get selected and deselected the moment I tap. It seems to be a common problem about the way windows pc touches are processed.

I have tried reimporting the unitypackage into a new project. Tried running in editor and in standalone. Disabled Mouse, Keyboard and Gamepad input from UICamera. None of this helped. Do you have a fix for this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows 8.1 (PC) touchscreen issues
« Reply #1 on: July 02, 2014, 05:50:26 AM »
OnSelect(false) is sent when you select some other object. So what object gets selected then? Selection is only set when you press on something, never when you unpress. OnPress(true) is sent when you press, OnPress(false) is sent when you unpress. Have you checked to see what events are actually sent by Unity itself? Just search the UICamera.cs script for "OnSelect" (with quotes) to see where it's used. You will notice that OnSelect(false) is sent only from one place: line 453.