Author Topic: NGUI 3.6.4 - WP8 - UIInput  (Read 21154 times)

latas

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: NGUI 3.6.2 - WP8 - UIInput
« Reply #15 on: June 14, 2014, 09:13:00 AM »
I've tried 3.6.4 and still fails. Do you need anything else to verify this problem? Can I help you?

Thank you.

Caio.Lib

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 2
  • Posts: 26
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #16 on: June 14, 2014, 05:41:38 PM »
As quantumfrog and latas said, the problem remains.
I'm using NGUI 3.6.4 and change event.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #17 on: June 15, 2014, 03:33:08 AM »
Skype me and let's get to the bottom of the issue.

tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #18 on: June 16, 2014, 01:50:26 AM »
Hi,
i can confirm this focus bug. I made an empty project with only two Input fields and when I start the program on WP8 I can focus on my first Input field but only once. After first focus and defocus it breaks and will only focus for a time of one frame.

EDIT: I'm using Unity 4.5.0f6 and NGUI 3.6.4
EDIT2:
I added two gui elements to watch TouchScreenKeyboard.hideInput and TouchScreenKeyboard.visible fields' values and it seems that after I touch UIInput-field visible-value goes to true for one frame and then false for one frame and after that it stays on true value untill I close the touchkeyboard.

Tomi
Skypetm: tomikokkonen
« Last Edit: June 16, 2014, 02:06:21 AM by tkok »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #19 on: June 16, 2014, 08:28:16 AM »
Sounds like a bug in Unity reporting the incorrect keyboard visibility state. Is it only an issue with the "hide input" option?

tkok

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #20 on: June 18, 2014, 01:14:40 AM »
- - Is it only an issue with the "hide input" option?
I have hide input option turned off so that's not the case. I tried to turn hide input setting on but it didn't help.

EDIT1:
I made ugly fix for this. I simply wait two frames before judge if keyboard is really closed or not. That's super ugly and stupid way but I needed this to be fixed today.
In UIInput.cs I added private field
  1.     private bool skipOneInputCloseFrame = true;
  2.  
And for Line 620:
  1.                 if (mKeyboard.done || !mKeyboard.active)
  2.                 {
  3.                     if(skipOneInputCloseFrame){
  4.                         skipOneInputCloseFrame = false;
  5.                     }
  6.                     else{
  7.                                             if (!mKeyboard.wasCanceled) Submit();
  8.                                             mKeyboard = null;
  9.                                             isSelected = false;
  10.                                             mCached = "";
  11.                         skipOneInputCloseFrame = true;
  12.                     }
  13.                 }
« Last Edit: June 18, 2014, 01:35:57 AM by tkok »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.6.4 - WP8 - UIInput
« Reply #21 on: June 18, 2014, 03:40:46 PM »
Simply 'return' after opening the keyboard.