Author Topic: Hitting Enter for a Selected Button While Hovering on a Different One  (Read 2768 times)

bbarber

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Hi, I'm having an issue with some buttons on NGUI 3.6.8.

Right now, say we have a simple scene with two UIButtons in a PC build. If I click on one button, then mouse off and hit enter, that first button ends displaying the "Hover" sprite state.
Similarly, if I click on one button, hover on top of the second button, and hit enter, I can mouse off of button number two and it remains in a "Hover" state. Hitting enter a second time while moused off causes both to show the "Hover" sprite.

It looks to be the switching of the UICamera's mHover to the currentTouch.current when I hit enter.

I would just change it for our desired behavior, but I don't want to potentially break future controller support. Looking forward to sorting this out with you!
Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Please update your NGUI. The way different types of input get handled was changed completely in 3.9.0.