Hello Guest

Author Topic: Bug with Input  (Read 3662 times)

DNSavar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Bug with Input
« on: September 22, 2014, 09:46:15 pm »
Hi,

I found a little bug in button behavior.

If you set your button to send msg when it is "Released" and your button do some stuff but finally disables input, the msg is sent 2 times.

It happens when your button start a transition and you want to block input during transition by example. When input are enabled/disabled, inputs are verified so, the input is triggered 2 times. Not a big deal, but it can be dangerous...

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Bug with Input
« Reply #1 on: September 23, 2014, 10:51:18 am »
Which button class is this? (tk2dUIItem, or tk2dBUtton)
« Last Edit: September 23, 2014, 12:07:11 pm by unikronsoftware »

DNSavar

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Bug with Input
« Reply #2 on: October 28, 2014, 12:45:46 pm »
Sorry, I didn`t receive notification of your answer...

I remember It was with a button, but I don`t remember if it is the UIItem of UIButton...