hi,
BasicButton.hx ,I add:
if ( isOver && l_inputMouse.getIsButtonDown())
{
onDown();
}
in _updater( p_deltaTime:Int = 0 ) funciton.
.
and add function:
public function onDown():Void {
setAgenda( EAgenda.SUB_TYPE( _HelperEState.OVER ) );
}
.
modify onClick() function like this:
public function onClick():Void
{
setAgenda( EAgenda.SUB_TYPE( _HelperEState.UP ) );// add this line.
if ( onClickCallback == null )
{
return;
}
Reflect.callMethod( this, onClickCallback, [] );
}
because,if the target is android,after button click,the button state can not reset to up state.I wish you have a better solution...:)