C# Class FairyGUI.LongPressGesture

长按手势。当按下一定时间后(duration),派发onAction,如果once为false,则间隔duration时间持续派发onAction,直到手指释放。
Inheritance: EventDispatcher
Show 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 static property

public static float INTERVAL
return float

TRIGGER public static property

public static float TRIGGER
return float

holdRangeRadius public property

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

interval public property

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

once public property

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

trigger public property

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