Click or drag to resize

LongPressGesture Class

长按手势。当按下一定时间后(duration),派发onAction,如果once为false,则间隔duration时间持续派发onAction,直到手指释放。
Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUILongPressGesture

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class LongPressGesture : EventDispatcher

The LongPressGesture type exposes the following members.

Constructors
  NameDescription
Public methodLongPressGesture
Initializes a new instance of the LongPressGesture class
Top
Properties
  NameDescription
Public propertyhost
Public propertyonAction
当手指按下后一段时间后派发该事件。并且在手指离开前按一定周期派发该事件。
Public propertyonBegin
当手指按下时派发该事件。
Public propertyonEnd
手指离开屏幕时派发该事件。
Top
Methods
Fields
  NameDescription
Public fieldholdRangeRadius
手指按住后,移动超出此半径范围则手势停止。
Public fieldinterval
派发onAction事件的时间间隔。单位秒。
Public fieldStatic memberINTERVAL
Public fieldonce
如果为真,则onAction再一次按下释放过程只派发一次。如果为假,则每隔duration时间派发一次。
Public fieldtrigger
第一次派发事件的触发时间。单位秒
Public fieldStatic memberTRIGGER
Top
See Also