M3D / M3D / Inputs / WalkthroughCameraInputHandler
Class: WalkthroughCameraInputHandler
M3D.Inputs.WalkthroughCameraInputHandler
Memberof
M3D.Inputs
Description
漫游相机输入
Hierarchy
-
↳
WalkthroughCameraInputHandler
Table of contents
Constructors
Properties
Methods
- KeyUp
- MoveSideways
- MoveUpAndDown
- RotateSideways
- getCamera
- getCameraFov
- getCameraRotateMode
- getControlLockXY
- getDirectionDistance
- getEvents
- getFreeViewMode
- getId
- getInput
- getOribitMode
- getRotateCenterPoint
- getScene
- getTrackBall
- getTrackball
- getUpDirection
- getViewMode
- initCamera
- initYawPitchRoll
- keepRotateTaskFunction
- keyDown
- keyUp
- mouseDown
- mouseMove
- mouseUp
- mouseWheel
- moveStraight
- registerEvent
- removeEvent
- reset
- setCameraFov
- setCameraRotateMode
- setControlLockXY
- setFreeViewMode
- setId
- setInput
- setOribitMode
- setUpDirection
- setViewMode
- setYawPitchRollRange
- stateChanged
- touchDown
- touchMove
- touchUp
- virtualKeyMove
- addCustomConfig
- getHandler
- initCustomConfig
Constructors
constructor
• new WalkthroughCameraInputHandler(input
): WalkthroughCameraInputHandler
Parameters
Name | Type |
---|---|
input | Input |
Returns
Description
构造函数
Overrides
CommonCameraInputHandler.constructor
Properties
id
• id: number
Inherited from
count
▪ Static
count: number
Inherited from
CommonCameraInputHandler.count
customHandlerConfig
▪ Static
customHandlerConfig: Map
<string
, any
>
Inherited from
CommonCameraInputHandler.customHandlerConfig
Methods
KeyUp
▸ KeyUp(e
): void
Parameters
Name | Type |
---|---|
e | KeyEventArgs |
Returns
void
Description
键盘抬起事件
MoveSideways
▸ MoveSideways(distance
): void
Parameters
Name | Type |
---|---|
distance | number |
Returns
void
Description
左右移动
MoveUpAndDown
▸ MoveUpAndDown(distance
): void
Parameters
Name | Type |
---|---|
distance | number |
Returns
void
Description
上下移动