开发者参考
x
程序员指南
开发者套件
编程基础
与React.js/Vue.js集成
服务器端渲染
动画系统
画线
矩阵变换
更新内容
如何获取资源
动画
AnimationAction
AnimationClip
AnimationMixer
AnimationUtils
KeyframeTrack
NumberKeyframeTrack
QuaternionKeyframeTrack
VectorKeyframeTrack
应用
App
AppUtils
音频
Audio
AudioContext
AudioListener
PositionalAudio
摄影机
ArrayCamera
Camera
CubeCamera
OrthographicCamera
PerspectiveCamera
常量
Animation
Controls
Core
CustomBlendingEquation
Lights
Materials
Renderer
Textures
约束
CanvasBreakpointsConstraint
CanvasFitConstraint
ChildOfConstraint
Constraint
CopyLocationConstraint
CopyRotationConstraint
CopyScaleConstraint
CopyTransformsConstraint
DampedTrackConstraint
FixOrthoZoomConstraint
FloorConstraint
LimitDistanceConstraint
LimitLocationConstraint
LimitRotationConstraint
LimitScaleConstraint
LockedTrackConstraint
TargetConstraint
TrackToConstraint
控制
KeyListener
OrbitControls
核心
BufferAttribute
BufferGeometry
Clock
Detector
EventDispatcher
Geometry
Layers
Object3D
Raycaster
Uniform
核心 / BufferAttributes
BufferAttribute Types
附件
CubicBezierCurve
Curve
CurvePath
Earcut
EllipseCurve
Font
ImageUtils
Interpolations
LineCurve
MeshLine
MeshLineIndexed
PMREMGenerator
Path
Preloader
PuzzlesLoader
QuadraticBezierCurve
Shape
ShapePath
ShapeUtils
SimplePreloader
SplineCurve
几何体
BoxGeometry
CircleGeometry
ConeGeometry
CylinderGeometry
EdgesGeometry
ExtrudeGeometry
IcosahedronGeometry
PlaneGeometry
PolyhedronGeometry
RingGeometry
ShapeGeometry
SphereGeometry
TextGeometry
TorusGeometry
TubeGeometry
WireframeGeometry
辅助对象
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
PlaneHelper
PointLightHelper
RectAreaLightHelper
SkeletonHelper
SpotLightHelper
灯光
AmbientLight
CubeReflectionProbe
DirectionalLight
Light
LightShadow
PointLight
PointLightShadow
RectAreaLight
SpotLight
SpotLightShadow
加载器
AudioLoader
Cache
CompressedTextureLoader
DataTextureLoader
DefaultLoadingManager
FileLoader
ImageBitmapLoader
ImageLoader
GLTFLoader
Loader
LoaderUtils
LoadingManager
TextureLoader
材质
LineBasicMaterial
Material
MaterialUtils
MeshBasicMaterial
MeshDepthMaterial
MeshDistanceMaterial
MeshLineMaterial
MeshNodeMaterial
MeshNormalMaterial
MeshStandardMaterial
PointsMaterial
RawShaderMaterial
ShaderMaterial
ShadowMaterial
SpriteMaterial
数学
Box2
Box3
Color
CubicInterpolant
DiscreteInterpolant
Euler
Frustum
Interpolant
LinearInterpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
QuaternionLinearInterpolant
Ray
Sphere
Spherical
Triangle
Vector2
Vector3
Vector4
对象
Annotation
AnnotationControl
Bone
Group
Line
LineHTML
LineLoop
LineSegments
Mesh
Points
Skeleton
SkinnedMesh
Sprite
渲染器
RenderUtils
WebGLCubeRenderTarget
WebGLRenderer
WebGLRenderTarget
场景
Fog
FogExp2
Scene
SceneUtils
纹理贴图
CanvasTexture
CompressedTexture
CubeTexture
DataTexture
DepthTexture
Texture
VideoTexture
KeyListener
一个简单的类,用于注册keyup/keydown事件并标识当前是否正在按下某个键。
构造函数
KeyListener(
domElement
)
domElement
: 要向其中添加事件侦听器的HTML元素。
属性
#
.
isKeyDown
:
Object
一个对象,其键是来自
Keys
字典的键代码,值是指示当前是否按下相应键的布尔标志。
#
.
onKeyDown
:
Function
“keydown”事件后触发的回调。接收“event”对象作为参数。
#
.
onKeyUp
:
Function
“keyup”事件后触发的回调。接收“event”对象作为参数。
方法
#
.
dispose
() →
null
移除所有的事件侦听器。
源代码
关于如何获取此模块的源代码,请查看
本页
。
<div><img src="https://mc.yandex.ru/watch/46001298" style="position:absolute; left:-9999px;" alt="" /></div>