Preparing search index...
The search index is not available
kokomi.js
kokomi.js
Keyboard
Class Keyboard
An encapsuled class to get keyboard key.
Index
Constructors
constructor
Properties
keys
Accessors
is
Backspace
Key
Down
is
Ctrl
Key
Down
is
Down
Key
Down
is
Enter
Key
Down
is
Esc
Key
Down
is
Left
Key
Down
is
Right
Key
Down
is
Shift
Key
Down
is
Space
Key
Down
is
Tab
Key
Down
is
Up
Key
Down
Methods
listen
For
Key
on
Key
Down
on
Key
Up
Constructors
constructor
new
Keyboard
(
)
:
Keyboard
Returns
Keyboard
Properties
keys
keys
:
Record
<
string
,
boolean
>
Accessors
is
Backspace
Key
Down
get
isBackspaceKeyDown
(
)
:
boolean
Returns
boolean
is
Ctrl
Key
Down
get
isCtrlKeyDown
(
)
:
boolean
Returns
boolean
is
Down
Key
Down
get
isDownKeyDown
(
)
:
boolean
Returns
boolean
is
Enter
Key
Down
get
isEnterKeyDown
(
)
:
boolean
Returns
boolean
is
Esc
Key
Down
get
isEscKeyDown
(
)
:
boolean
Returns
boolean
is
Left
Key
Down
get
isLeftKeyDown
(
)
:
boolean
Returns
boolean
is
Right
Key
Down
get
isRightKeyDown
(
)
:
boolean
Returns
boolean
is
Shift
Key
Down
get
isShiftKeyDown
(
)
:
boolean
Returns
boolean
is
Space
Key
Down
get
isSpaceKeyDown
(
)
:
boolean
Returns
boolean
is
Tab
Key
Down
get
isTabKeyDown
(
)
:
boolean
Returns
boolean
is
Up
Key
Down
get
isUpKeyDown
(
)
:
boolean
Returns
boolean
Methods
listen
For
Key
listen
For
Key
(
)
:
void
Returns
void
on
Key
Down
on
Key
Down
(
e
)
:
void
Parameters
e
:
KeyboardEvent
Returns
void
on
Key
Up
on
Key
Up
(
e
)
:
void
Parameters
e
:
KeyboardEvent
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
keys
Accessors
is
Backspace
Key
Down
is
Ctrl
Key
Down
is
Down
Key
Down
is
Enter
Key
Down
is
Esc
Key
Down
is
Left
Key
Down
is
Right
Key
Down
is
Shift
Key
Down
is
Space
Key
Down
is
Tab
Key
Down
is
Up
Key
Down
Methods
listen
For
Key
on
Key
Down
on
Key
Up
kokomi.js
AnimationManager
Animator
AssetManager
Base
BasicPanorama
Bender
Box
CameraControls
Caustics
Center
Clock
Component
ContactShadows
CubemapQuad
CustomEffect
CustomMaterial
CustomMesh
CustomPoints
CustomShaderMaterial
DecalGeometry
DoubleFBO
DragDetecter
Environment
FBO
FBXLoader
FirstPersonCamera
Float
FullScreenQuad
GPUComputer
Gallery
GlassMaterial
Html
HyperbolicHelicoidGeometry
IMouse
ImagePanorama
InfiniteGallery
Joystick
Keyboard
LightFormer
MeshPhysicsObject
MeshReflectorMaterial
MeshReflectorMaterialImpl
MeshTransmissionMaterial
Moji
MojiGroup
OrbitControls
OrthographicCamera
PackedMipMapGenerator
PanoramaGenerator
PersistenceEffect
Physics
RayMarchingQuad
RaycastSelector
RectAreaLightHelper
Reflector
RenderQuad
RenderTexture
Resizer
SVGLoader
ScreenCamera
ScreenQuad
ShaderToyElement
Sparkles
SphubeGeometry
Stage
Stats
Text3D
TextMesh
ThinFilmFresnelMap
ThirdPersonCamera
TrailTexture
TrailTextureImpl
UniformInjector
Viewer
Voxelizer
WheelScroller
AnimatorConfig
AssetManagerConfig
BaseConfig
BasicPanoramaConfig
BoxConfig
CSMPatchMap
CausticsConfig
CenterConfig
ContactShadowsConfig
CreatePolygonShapeConfig
CustomEffectConfig
CustomMeshConfig
CustomPointsConfig
DoubleFBOConfig
DragDetecterConfig
EnvironmentConfig
FBOConfig
FirstPersonCameraConfig
FloatConfig
GPUComputerConfig
GalleryConfig
HorizontalGalleryConfig
HtmlConfig
ImagePanoramaConfig
InfospotConfig
JoystickConfig
LightFormerConfig
LoadGLTFConfig
LoadVideoOptions
Loaders
MeshPhysicsObjectParams
MeshReflectorMaterialConfig
MeshTransmissionMaterialConfig
MojiConfig
OrbitControlsConfig
OrthographicCameraConfig
PersistenceEffectConfig
PlaneConfig
PresetItem
ReflectorConfig
RenderTextureConfig
ResizerConfig
ResourceItem
SceneConfig
ScreenCameraConfig
Scroll
SparklesConfig
StageConfig
ThirdPersonCameraConfig
Vector3
ViewerConfig
Voxel
_CSMParam
iCSMShader
AllMaterialParams
CSMBaseMaterial
CanvasSize
Form
HTMLAssetElement
MeshReflectorMaterialProps
PanoramaConfig
ResoureList
ResoureType
iCSMParams
iCSMUpdateParams
DEFAULT_DRACO_DECODER_PATH
NormalScroller
adaptMobileDOM
applyViewScissor
beautifyRender
calcObjectPosition
calcPerspectiveScreenSize
calcTransformFov
cloneUniform
cloneUniforms
computeCurl
computeViewWindowScale
convertBufferAttributeToVector
convertGeometryToShape
createPolygonShape
detectDeviceType
downloadBlob
enableRealisticRender
enableSRGBColorSpace
enableShadow
epsilon
expandColor
exportGLTF
extendMaterial
fixShapeGeometryUV
flatModel
getBaryCoord
getBound
getBoundsVertices
getCSSMatrix
getCameraCSSMatrix
getEnvmapFromHDRTexture
getEnvmapFromScene
getImageData2DArrayFromCanvas
getObjectCSSMatrix
getPointsInPath
getPositionCentroids
getUniformFromAsset
getViewport
hyperbolicHelicoidFunction
isFloat32Array
isObjectBehindCamera
isObjectVisible
isVector
iterateBuffer
loadCubemapFromImgs
loadFBX
loadFont
loadGLTF
loadHDR
loadTextureFromImg
loadVideoTexture
makeBuffer
mapShader
normalizeVector
objectScale
objectZIndex
optimizeModelRender
patchShader
polySort
preloadImages
preloadSDFFont
preventDefaultAndStopBubble
printModel
range
roundedRect
sample
sampleParticlesPositionFromMesh
sampleSize
saturate
saveArrayBuffer
saveString
shuffle
sleep
smoothNormal
sphubeFunction
usePropAsIsOrAsAttribute
"
"
An encapsuled class to get keyboard key.