PcTouchView Class Reference

Inherits from UIView
Declared in PcTouchView.h
PcTouchView.m

Other Methods

– setCursorTouchMode:

Set the mouse control mode

- (void)setCursorTouchMode:(TCRMouseCursorTouchMode)mode

Parameters

mode

For details, see the definition of TCRMouseCursorTouchMode

Discussion

Set the mouse control mode

Declared In

PcTouchView.h

– setCursorIsShow:

Set whether the mouse is visible

- (void)setCursorIsShow:(BOOL)isShow

Parameters

isShow

YES to display, NO to hide

Discussion

Set whether the mouse is visible

Declared In

PcTouchView.h

– setCursorSensitive:

Set the sensitivity when moving the mouse, valid in relative movement mode

- (void)setCursorSensitive:(CGFloat)sensitive

Parameters

sensitive

The default 1.0 is the same as the manual sliding range

Discussion

Set the sensitivity when moving the mouse, valid in relative movement mode

Declared In

PcTouchView.h

– setCursorImage:andRemoteFrame:

Set the default mouse icon, valid in local rendering mode

- (void)setCursorImage:(UIImage *)image andRemoteFrame:(CGRect)remoteFrame

Parameters

image

cursor pointer icon

remoteFrame

The size and position of the cursor view, in the video source coordinate system

Discussion

Set the default mouse icon, valid in local rendering mode

Declared In

PcTouchView.h

– setClickTypeIsLeft:

Set the click type that triggers the mouse when clicking. The default triggers left click.

- (void)setClickTypeIsLeft:(BOOL)isLeft

Parameters

isLeft

YES, triggers the left mouse button; NO, triggers the right mouse button

Discussion

Set the click type that triggers the mouse when clicking. The default triggers left click.

Declared In

PcTouchView.h

– moveCursorWithDiffX:diffY:

Move the mouse pointer through the interface (valid in local rendering mode)

- (void)moveCursorWithDiffX:(CGFloat)diffX diffY:(CGFloat)diffY

Parameters

diffX

On the X-axis of the current mouse view, the mouse pointer moves diffX points.

diffY

On the Y axis of the current mouse view, the mouse pointer moves diffY points.

Discussion

Move the mouse pointer through the interface (valid in local rendering mode)

Declared In

PcTouchView.h

Extension Methods

  cursorView

类似fps游戏场景,手动滑动屏幕控制角色视角转动,只发送mousedeltamove消息,不发送点击事件

@property (nonatomic, strong) UIView *cursorView

Discussion

类似fps游戏场景,手动滑动屏幕控制角色视角转动,只发送mousedeltamove消息,不发送点击事件

Declared In

PcTouchView.m