AR_Engine_SDK
Functions | Variables
XGestureManager.lua File Reference
类 XGestureManager 继承关系图:
Inheritance graph

Functions

function XGestureManager SetMoveJudgement_v1 (nMoveJudgement) end
 
function XGestureManager GetMoveJudgement_v1 () end
 
function XGestureManager SetMultiClickInterpTime (fTime) end
 
function XGestureManager GetMultiClickInterpTime () end
 
function XGestureManager SetLongPressTime (fTime) end
 
function XGestureManager GetLongPressTime () end
 

Variables

 GestureClickParam = {}
 
GestureClickParam NormalClick = 0
 
GestureClickParam LongClick = 0
 
GestureClickParam MultiClick = 0
 
GestureClickParam Pressed = 0
 
GestureClickParam Changed = 0
 
GestureClickParam Raised = 0
 
GestureClickParam vPosition = {}
 @type XVECTOR2 点击位置 More...
 
GestureClickParam eType = 0
 @type number 事件类型 More...
 
GestureClickParam eState = 0
 @type number 事件状态 More...
 
GestureClickParam fParam = 0
 @type number More...
 
GestureClickParam nTag = 0
 @type number 事件标记 More...
 
 GestureMoveParam = {}
 
GestureMoveParam Moved = 0
 
GestureMoveParam Stopped = 0
 
GestureMoveParam vLastPosition = {}
 @type XVECTOR2 上一时刻位置 More...
 
 GestureMove2Param = {}
 
GestureMove2Param aPositions = {}
 @type XVECTOR2[] 此刻位置 More...
 
GestureMove2Param aLastPositions = {}
 @type XVECTOR2[] 上一时刻位置 More...
 
GestureMove2Param vDir = {}
 @type XVECTOR2 移动方向 More...
 
 GesturePinchParam = {}
 
GesturePinchParam fLastScale = 0
 @type number More...
 
GesturePinchParam fNewScale = 0
 @type number More...
 
 GestureRotate2Param = {}
 
GestureRotate2Param Clockwise = 0
 
GestureRotate2Param CounterClockwise = 0
 
GestureRotate2Param NotCircle = 0
 
GestureRotate2Param eOrder = 0
 @type number 手指绕序 More...
 
 XGestureManager = {}
 

Function Documentation

◆ GetLongPressTime()

function XGestureManager GetLongPressTime ( )

获取长按的判定时间,默认0.2s

Returns
number 长按的判定时间

◆ GetMoveJudgement_v1()

function XGestureManager GetMoveJudgement_v1 ( )

设置移动的距离判定,默认20

Returns
number

◆ GetMultiClickInterpTime()

function XGestureManager GetMultiClickInterpTime ( )

获取连续点击的间隔时间,点击间隔在该时间内视为连续点击,否则为普通单击,默认0.2s

Returns
number 连续点击的间隔时间

◆ SetLongPressTime()

function XGestureManager SetLongPressTime ( fTime  )

设置长按的判定时间,默认0.2s

Parameters
fTimenumber 长按的判定时间
Returns
void

◆ SetMoveJudgement_v1()

function XGestureManager SetMoveJudgement_v1 ( nMoveJudgement  )

设置移动的距离判定,默认20

Parameters
nMoveJudgementnumber 移动的距离判定值
Returns
void

◆ SetMultiClickInterpTime()

function XGestureManager SetMultiClickInterpTime ( fTime  )

设置连续点击的间隔时间,点击间隔在该时间内视为连续点击,否则为普通单击,默认0.2s

Parameters
fTimenumber 连续点击的间隔时间
Returns
void

Variable Documentation

◆ aLastPositions

GesturePinchParam aLastPositions = {}

@type XVECTOR2[] 上一时刻位置

◆ aPositions

GesturePinchParam aPositions = {}

@type XVECTOR2[] 此刻位置

◆ Changed

GesturePinchParam Changed = 0

◆ Clockwise

GestureRotate2Param Clockwise = 0

◆ CounterClockwise

GestureRotate2Param CounterClockwise = 0

◆ eOrder

GestureRotate2Param eOrder = 0

@type number 手指绕序

◆ eState

GestureRotate2Param eState = 0

@type number 事件状态

◆ eType

GestureClickParam eType = 0

@type number 事件类型

◆ fLastScale

GesturePinchParam fLastScale = 0

@type number

◆ fNewScale

GesturePinchParam fNewScale = 0

@type number

◆ fParam

GestureClickParam fParam = 0

@type number

◆ GestureClickParam

◆ GestureMove2Param

◆ GestureMoveParam

◆ GesturePinchParam

◆ GestureRotate2Param

◆ LongClick

GestureClickParam LongClick = 0

◆ Moved

◆ MultiClick

GestureClickParam MultiClick = 0

◆ NormalClick

GestureClickParam NormalClick = 0

◆ NotCircle

GestureRotate2Param NotCircle = 0

◆ nTag

GestureMoveParam nTag = 0

@type number 事件标记

◆ Pressed

GestureClickParam Pressed = 0

◆ Raised

GestureClickParam Raised = 0

◆ Stopped

GestureRotate2Param Stopped = 0

◆ vDir

GestureMove2Param vDir = {}

@type XVECTOR2 移动方向

◆ vLastPosition

GestureMoveParam vLastPosition = {}

@type XVECTOR2 上一时刻位置

◆ vPosition

GestureMoveParam vPosition = {}

@type XVECTOR2 点击位置

◆ XGestureManager