开发者参考
x
程序员指南
开发者套件
编程基础
与React.js/Vue.js集成
服务器端渲染
矩阵变换
动画系统
画线
更新内容
如何获取资源
动画
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
KeyframeTrack
动画 / 轨道
BooleanKeyframeTrack
ColorKeyframeTrack
NumberKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
VectorKeyframeTrack
应用
App
AppUtils
音频
Audio
AudioAnalyser
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
InstancedBufferAttribute
InstancedBufferGeometry
Layers
Object3D
Raycaster
Uniform
核心 / BufferAttributes
BufferAttribute Types
附件
Earcut
ImageUtils
MeshLine
MeshLineIndexed
PMREMGenerator
Preloader
PuzzlesLoader
ShapeUtils
SimplePreloader
附件 / 核心
Curve
CurvePath
Font
Interpolations
Path
Shape
ShapePath
附件 / 曲线
ArcCurve
CatmullRomCurve3
CubicBezierCurve
CubicBezierCurve3
EllipseCurve
LineCurve
LineCurve3
QuadraticBezierCurve
QuadraticBezierCurve3
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
PointLight
RectAreaLight
SpotLight
灯光 / 阴影
DirectionalLightShadow
LightShadow
PointLightShadow
SpotLightShadow
加载器
AudioLoader
Cache
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
GLTFLoader
Loader
LoaderUtils
TextureLoader
加载器 / 管理器
DefaultLoadingManager
LoadingManager
材质
LineBasicMaterial
Material
MaterialUtils
MeshBasicMaterial
MeshDepthMaterial
MeshDistanceMaterial
MeshLambertMaterial
MeshLineMaterial
MeshNodeMaterial
MeshNormalMaterial
MeshStandardMaterial
PointsMaterial
RawShaderMaterial
ShaderMaterial
ShadowMaterial
SpriteMaterial
数学
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
Ray
Sphere
Spherical
Triangle
Vector2
Vector3
Vector4
数学 / 插值
CubicInterpolant
DiscreteInterpolant
LinearInterpolant
QuaternionLinearInterpolant
对象
Annotation
AnnotationControl
Bone
Group
InstancedMesh
Line
LineHTML
LineLoop
LineSegments
LOD
Mesh
Points
Skeleton
SkinnedMesh
Sprite
渲染器
RenderUtils
WebGLCubeRenderTarget
WebGLMultisampleRenderTarget
WebGLRenderer
WebGLRenderTarget
渲染器 / 着色器
ShaderChunk
ShaderLib
UniformsLib
UniformsUtils
场景
Fog
FogExp2
Scene
SceneUtils
纹理贴图
CanvasTexture
CompressedTexture
CubeTexture
DataTexture
DataTexture3D
DepthTexture
Texture
VideoTexture
KeyListener
一个简单的类,用于注册keyup/keydown事件并标识当前是否正在按下某个键。
构造函数
KeyListener(
domElement
)
domElement
: 要向其中添加事件侦听器的HTML元素。
属性
#
.
isKeyDown
:
Object
一个对象,其键是来自
Keys
字典的键代码,值是指示当前是否按下相应键的布尔标志。
#
.
onKeyDown
:
Function
“keydown”事件后触发的回调。接收“event”对象作为参数。
#
.
onKeyUp
:
Function
“keyup”事件后触发的回调。接收“event”对象作为参数。
方法
#
.
dispose
() →
null
移除所有的事件侦听器。
源代码
关于如何获取此模块的源代码,请查看
本页
。