sparkle-engine
sparkle-engine
MouseManager
Class MouseManager
鼠标输入
Implements
IEventAble
<
IMouseEvents
>
Index
Constructors
constructor
Properties
canvas
engine
event
is
Mouse
Down
mouse
Position
Methods
get
Mouse
Data
handle
Mouse
Down
handle
Mouse
Move
handle
Mouse
Up
init
Mouse
Events
Constructors
constructor
new
Mouse
Manager
(
engine
,
canvas
)
:
MouseManager
Parameters
engine
:
SparkleEngine
canvas
:
HTMLCanvasElement
Returns
MouseManager
Properties
Private
canvas
canvas
:
HTMLCanvasElement
Private
engine
engine
:
SparkleEngine
event
event
:
EventEmitter
<
IMouseEvents
>
= ...
is
Mouse
Down
is
Mouse
Down
:
boolean
= false
鼠标是否点击
mouse
Position
mouse
Position
:
Vector2
= ...
鼠标的全局位置
Methods
Private
get
Mouse
Data
get
Mouse
Data
(
event
)
:
IMouseData
Parameters
event
:
MouseEvent
Returns
IMouseData
Private
handle
Mouse
Down
handle
Mouse
Down
(
event
)
:
void
Parameters
event
:
MouseEvent
Returns
void
Private
handle
Mouse
Move
handle
Mouse
Move
(
event
)
:
void
Parameters
event
:
MouseEvent
Returns
void
Private
handle
Mouse
Up
handle
Mouse
Up
(
event
)
:
void
Parameters
event
:
MouseEvent
Returns
void
Private
init
Mouse
Events
init
Mouse
Events
(
)
:
void
Returns
void
Preparing search index...
The search index is not available
sparkle-engine
CONTENTS
Math
Color
MathUtils
Matrix
Path
Rect
Vector2
GameNode
Collision
Container
Drawable
Graphical
Sprite
Text
Timer
Transform2D
Texture
AltasTexture
BaseTexture
Texture
TextureManager
Input
InputManager
MouseManager
Physics
Collision
PhysicsManager
Audio
Audio
AudioManager
Others
DebuggerDrawType
GraphicalType
PRIMITIVE_MODE
ResourcesType
SCALE_MODE
TextAnchor
Animations
DataResources
EventEmitter
GLShader
Loader
ObjectPool
Renderer
Resources
ResourcesManager
Scene
SparkleEngine
TextManager
VertexArrayBuffer
AnimationsStore
AttributeInfo
IAnimationFrames
IAnimationOption
IAudioEvent
IBaseGraphicalOptions
ICircleOptions
ICollisionEvent
ICollisionOptions
ICollisionResult
ICompositorOptions
IContainerEvent
IContainerOptions
ICopyable
IDebuggerDraw
IDestoryable
IDrawLineOptions
IDrawOptions
IDrawPolygonOptions
IDrawableOptions
IEventAble
IInputEvents
IListened
ILoadAnimationOptions
ILoaderEvent
IMouseData
IMouseEvents
IPolygonOptions
IPoolable
IRectOptions
IRenderOptions
IResources
IResourcesManagerEvent
IResourcesStore
ISparkleEngineOption
ISpriteOptions
ITextOptions
ITimerEvents
ITimerOptions
ITransform2DOptions
PoolTypes
AttributesLocation
Constructor
IGraphicalOptions
Images
鼠标输入