C# Class FairyGUI.LongPressGesture

长按手势。当按下一定时间后(duration),派发onAction,如果once为false,则间隔duration时间持续派发onAction,直到手指释放。
Inheritance: EventDispatcher
Mostra file Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
INTERVAL float
TRIGGER float
holdRangeRadius int
interval float
once bool
trigger float

Public Methods

Method Description
Cancel ( ) : void
Dispose ( ) : void
Enable ( bool value ) : void
LongPressGesture ( GObject host ) : System

Private Methods

Method Description
__timer ( object param ) : void
__touchBegin ( EventContext context ) : void
__touchEnd ( EventContext context ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Enable() public method

public Enable ( bool value ) : void
value bool
return void

LongPressGesture() public method

public LongPressGesture ( GObject host ) : System
host GObject
return System

Property Details

INTERVAL public_oe static_oe property

public static float INTERVAL
return float

TRIGGER public_oe static_oe property

public static float TRIGGER
return float

holdRangeRadius public_oe property

手指按住后,移动超出此半径范围则手势停止。
public int holdRangeRadius
return int

interval public_oe property

派发onAction事件的时间间隔。单位秒。
public float interval
return float

once public_oe property

如果为真,则onAction再一次按下释放过程只派发一次。如果为假,则每隔duration时间派发一次。
public bool once
return bool

trigger public_oe property

第一次派发事件的触发时间。单位秒
public float trigger
return float