phaser/2.7.0/docs/Phaser.InputHandler.html

9253 lines
145 KiB
HTML
Raw Normal View History

2013-10-02 14:05:55 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Class: InputHandler</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2014-11-15 20:01:46 +00:00
<link type="text/css" rel="stylesheet" href="styles/default.css">
2013-10-02 14:05:55 +00:00
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">
</head>
<body>
2014-11-25 00:23:44 +00:00
2013-10-02 14:05:55 +00:00
<div class="container-fluid">
<div class="navbar navbar-fixed-top navbar-inverse">
2014-11-25 00:23:44 +00:00
<div style="position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050"><a href="http://phaser.io"><img src="img/phaser.png" border="0" /></a></div>
2013-10-02 14:05:55 +00:00
<div class="navbar-inner">
2014-11-25 00:23:44 +00:00
<a class="brand" href="index.html">Phaser API</a>
2013-10-02 14:05:55 +00:00
<ul class="nav">
2014-11-25 00:23:44 +00:00
2013-10-02 14:05:55 +00:00
<li class="dropdown">
<a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b
2013-10-02 14:05:55 +00:00
class="caret"></b></a>
<ul class="dropdown-menu ">
2014-04-10 22:13:43 +00:00
<li class="class-depth-0">
<a href="Phaser.html">Phaser</a>
2013-10-02 14:05:55 +00:00
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-0">
<a href="PIXI.html">PIXI</a>
</li>
2013-10-02 14:05:55 +00:00
</ul>
</li>
<li class="dropdown">
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="Event.html">Event</a>
</li>
<li class="class-depth-0">
<a href="EventTarget.html">EventTarget</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Animation.html">Animation</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationManager.html">AnimationManager</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationParser.html">AnimationParser</a>
2013-10-02 14:05:55 +00:00
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.ArraySet.html">ArraySet</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.ArrayUtils.html">ArrayUtils</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-1">
<a href="Phaser.AudioSprite.html">AudioSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.BitmapData.html">BitmapData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.BitmapText.html">BitmapText</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1">
<a href="Phaser.Bullet.html">Bullet</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Button.html">Button</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Cache.html">Cache</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Camera.html">Camera</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Canvas.html">Canvas</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Circle.html">Circle</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Color.html">Color</a>
2013-10-03 00:21:08 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Component.Angle.html">Angle</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Animation.html">Animation</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.AutoCull.html">AutoCull</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Bounds.html">Bounds</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.BringToTop.html">BringToTop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Core.html">Core</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Crop.html">Crop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Delta.html">Delta</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Destroy.html">Destroy</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.FixedToCamera.html">FixedToCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Health.html">Health</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InCamera.html">InCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InputEnabled.html">InputEnabled</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InWorld.html">InWorld</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LifeSpan.html">LifeSpan</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LoadTexture.html">LoadTexture</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Overlap.html">Overlap</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.PhysicsBody.html">PhysicsBody</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Reset.html">Reset</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.ScaleMinMax.html">ScaleMinMax</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Smoothed.html">Smoothed</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Create.html">Create</a>
</li>
<li class="class-depth-1">
<a href="Phaser.Creature.html">Creature</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Device.html">Device</a>
2013-10-02 14:05:55 +00:00
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.DeviceButton.html">DeviceButton</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.DOM.html">DOM</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Easing.html">Easing</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Easing.Back.html">Back</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Bounce.html">Bounce</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Circular.html">Circular</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Cubic.html">Cubic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Elastic.html">Elastic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Exponential.html">Exponential</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Linear.html">Linear</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quadratic.html">Quadratic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quartic.html">Quartic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quintic.html">Quintic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Ellipse.html">Ellipse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Events.html">Events</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Filter.html">Filter</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.FlexGrid.html">FlexGrid</a>
</li>
<li class="class-depth-1">
<a href="Phaser.FlexLayer.html">FlexLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Frame.html">Frame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.FrameData.html">FrameData</a>
2013-10-03 00:21:08 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Game.html">Game</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.GameObjectCreator.html">GameObjectCreator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.Gamepad.html">Gamepad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Graphics.html">Graphics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Group.html">Group</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-1">
<a href="Phaser.Hermite.html">Hermite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Image.html">Image</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.ImageCollection.html">ImageCollection</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Input.html">Input</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.InputHandler.html">InputHandler</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Key.html">Key</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Keyboard.html">Keyboard</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-1">
<a href="Phaser.KeyCode.html">KeyCode</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.Line.html">Line</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.LinkedList.html">LinkedList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Loader.html">Loader</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.LoaderParser.html">LoaderParser</a>
2013-10-02 14:05:55 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Math.html">Math</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Matrix.html">Matrix</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Mouse.html">Mouse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.MSPointer.html">MSPointer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 19:18:24 +00:00
<a href="Phaser.Net.html">Net</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Particle.html">Particle</a>
</li>
<li class="class-depth-1">
2013-10-02 19:18:24 +00:00
<a href="Phaser.Particles.html">Particles</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-2">
<a href="Phaser.Particles.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
2013-10-02 19:18:24 +00:00
<a href="Phaser.Particles.Arcade.Emitter.html">Emitter</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-1">
<a href="Phaser.Path.html">Path</a>
</li>
<li class="class-depth-1">
<a href="Phaser.PathFollower.html">PathFollower</a>
</li>
<li class="class-depth-1">
<a href="Phaser.PathPoint.html">PathPoint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Physics.html">Physics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Physics.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Arcade.Body.html">Body</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-3">
2015-08-24 14:43:45 +00:00
<a href="Phaser.Physics.Arcade.TilemapCollision.html">TilemapCollision</a>
2015-03-23 23:46:30 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.Ninja.html">Ninja</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.AABB.html">AABB</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Circle.html">Circle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.P2.html">P2</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.BodyDebug.html">BodyDebug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.DistanceConstraint.html">DistanceConstraint</a>
</li>
<li class="class-depth-3">
<a href="Phaser.Physics.P2.FixtureList.html">FixtureList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.GearConstraint.html">GearConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.InversePointProxy.html">InversePointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.LockConstraint.html">LockConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Material.html">Material</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PointProxy.html">PointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PrismaticConstraint.html">PrismaticConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RevoluteConstraint.html">RevoluteConstraint</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RotationalSpring.html">RotationalSpring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Spring.html">Spring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Plugin.html">Plugin</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-2">
<a href="Phaser.Plugin.PathManager.html">PathManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.PluginManager.html">PluginManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Point.html">Point</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Pointer.html">Pointer</a>
</li>
2015-10-15 11:06:38 +00:00
<li class="class-depth-1">
<a href="Phaser.PointerMode.html">PointerMode</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Polygon.html">Polygon</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.QuadTree.html">QuadTree</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.RandomDataGenerator.html">RandomDataGenerator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Rectangle.html">Rectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.RenderTexture.html">RenderTexture</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.RequestAnimationFrame.html">RequestAnimationFrame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RetroFont.html">RetroFont</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.Rope.html">Rope</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.RoundedRectangle.html">RoundedRectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.ScaleManager.html">ScaleManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Signal.html">Signal</a>
</li>
<li class="class-depth-1">
<a href="Phaser.SignalBinding.html">SignalBinding</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.SinglePad.html">SinglePad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.Sound.html">Sound</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-03 00:21:08 +00:00
<a href="Phaser.SoundManager.html">SoundManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Sprite.html">Sprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.SpriteBatch.html">SpriteBatch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Stage.html">Stage</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.State.html">State</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.StateManager.html">StateManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.Text.html">Text</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tilemap.html">Tilemap</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.TilemapLayer.html">TilemapLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.TilemapParser.html">TilemapParser</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Tileset.html">Tileset</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-25 15:54:40 +00:00
<a href="Phaser.TileSprite.html">TileSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Time.html">Time</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-11-28 15:57:09 +00:00
<a href="Phaser.Timer.html">Timer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2014-02-05 06:29:17 +00:00
<a href="Phaser.TimerEvent.html">TimerEvent</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2013-10-02 14:05:55 +00:00
<a href="Phaser.Touch.html">Touch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tween.html">Tween</a>
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenData.html">TweenData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenManager.html">TweenManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Utils.html">Utils</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Utils.Debug.html">Debug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.Video.html">Video</a>
2013-10-02 14:05:55 +00:00
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1">
<a href="Phaser.Weapon.html">Weapon</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.World.html">World</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.AbstractFilter.html">AbstractFilter</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.BaseTexture.html">BaseTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasBuffer.html">CanvasBuffer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasGraphics.html">CanvasGraphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasMaskManager.html">CanvasMaskManager</a>
</li>
2015-08-24 14:43:45 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasPool.html">CanvasPool</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasRenderer.html">CanvasRenderer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasTinter.html">CanvasTinter</a>
</li>
<li class="class-depth-1">
<a href="PIXI.ComplexPrimitiveShader.html">ComplexPrimitiveShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.DisplayObjectContainer.html">DisplayObjectContainer</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-1">
<a href="PIXI.EarCut.html">EarCut</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.Event.html">Event</a>
</li>
<li class="class-depth-1">
<a href="PIXI.EventTarget.html">EventTarget</a>
</li>
<li class="class-depth-1">
<a href="PIXI.FilterTexture.html">FilterTexture</a>
</li>
<li class="class-depth-1">
<a href="PIXI.Graphics.html">Graphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.GraphicsData.html">GraphicsData</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PIXI.html">PIXI</a>
</li>
2016-07-01 15:57:13 +00:00
<li class="class-depth-2">
<a href="PIXI.PIXI.DisplayObject.html">DisplayObject</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.PixiFastShader.html">PixiFastShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PixiShader.html">PixiShader</a>
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.PrimitiveShader.html">PrimitiveShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.RenderTexture.html">RenderTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Rope.html">Rope</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Sprite.html">Sprite</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.SpriteBatch.html">SpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Strip.html">Strip</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.StripShader.html">StripShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Texture.html">Texture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.TilingSprite.html">TilingSprite</a>
2014-11-15 20:01:46 +00:00
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLBlendModeManager.html">WebGLBlendModeManager</a>
2014-11-25 00:23:44 +00:00
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFastSpriteBatch.html">WebGLFastSpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFilterManager.html">WebGLFilterManager</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLRenderer.html">WebGLRenderer</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
</ul>
</li>
<li class="dropdown">
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2016-06-03 17:48:34 +00:00
<li class="class-depth-0">
<a href="global.html#ANGLE_DOWN">ANGLE_DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_LEFT">ANGLE_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_EAST">ANGLE_NORTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_WEST">ANGLE_NORTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_RIGHT">ANGLE_RIGHT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_EAST">ANGLE_SOUTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_WEST">ANGLE_SOUTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_UP">ANGLE_UP</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#AUTO">AUTO</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPDATA">BITMAPDATA</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPTEXT">BITMAPTEXT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#blendModes">blendModes</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#BOTTOM_CENTER">BOTTOM_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#BOTTOM_LEFT">BOTTOM_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#BOTTOM_RIGHT">BOTTOM_RIGHT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BUTTON">BUTTON</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS">CANVAS</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS_FILTER">CANVAS_FILTER</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#CENTER">CENTER</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#CIRCLE">CIRCLE</a>
</li>
<li class="class-depth-0">
<a href="global.html#CREATURE">CREATURE</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#displayList">displayList</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#DOWN">DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ELLIPSE">ELLIPSE</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#emit">emit</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#EMITTER">EMITTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#GAMES">GAMES</a>
</li>
<li class="class-depth-0">
<a href="global.html#GRAPHICS">GRAPHICS</a>
</li>
<li class="class-depth-0">
<a href="global.html#GROUP">GROUP</a>
</li>
<li class="class-depth-0">
<a href="global.html#HEADLESS">HEADLESS</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#HORIZONTAL">HORIZONTAL</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#IMAGE">IMAGE</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#LANDSCAPE">LANDSCAPE</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#LEFT">LEFT</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#LEFT_BOTTOM">LEFT_BOTTOM</a>
</li>
<li class="class-depth-0">
<a href="global.html#LEFT_CENTER">LEFT_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#LEFT_TOP">LEFT_TOP</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#LINE">LINE</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#listeners">listeners</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#MATRIX">MATRIX</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#mixin">mixin</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#NONE">NONE</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#off">off</a>
</li>
<li class="class-depth-0">
<a href="global.html#on">on</a>
</li>
<li class="class-depth-0">
<a href="global.html#once">once</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-0">
<a href="global.html#PENDING_ATLAS">PENDING_ATLAS</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-2">
<a href="global.html#Phaser.Path#numPointsreturn%257Bnumber%257DThetotalnumberofPathPointsinthisPath.">Phaser.Path#numPoints
return {number} The total number of PathPoints in this Path.</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#POINT">POINT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#POINTER">POINTER</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#POLYGON">POLYGON</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#PORTRAIT">PORTRAIT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RECTANGLE">RECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#removeAllListeners">removeAllListeners</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RENDERTEXTURE">RENDERTEXTURE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RETROFONT">RETROFONT</a>
</li>
<li class="class-depth-0">
<a href="global.html#RIGHT">RIGHT</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#RIGHT_BOTTOM">RIGHT_BOTTOM</a>
</li>
<li class="class-depth-0">
<a href="global.html#RIGHT_CENTER">RIGHT_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#RIGHT_TOP">RIGHT_TOP</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#ROPE">ROPE</a>
</li>
<li class="class-depth-0">
<a href="global.html#ROUNDEDRECTANGLE">ROUNDEDRECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#scaleModes">scaleModes</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#SPRITE">SPRITE</a>
</li>
<li class="class-depth-0">
<a href="global.html#SPRITEBATCH">SPRITEBATCH</a>
</li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-0">
<a href="global.html#stopImmediatePropagation">stopImmediatePropagation</a>
</li>
<li class="class-depth-0">
<a href="global.html#stopPropagation">stopPropagation</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#TEXT">TEXT</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAP">TILEMAP</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAPLAYER">TILEMAPLAYER</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILESPRITE">TILESPRITE</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#TOP_CENTER">TOP_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#TOP_LEFT">TOP_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#TOP_RIGHT">TOP_RIGHT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#UP">UP</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#VERSION">VERSION</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#VERTICAL">VERTICAL</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#VIDEO">VIDEO</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL">WEBGL</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL_FILTER">WEBGL_FILTER</a>
2014-11-15 20:01:46 +00:00
</li>
2013-10-02 14:05:55 +00:00
</ul>
</li>
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<li class="dropdown">
2014-11-25 00:23:44 +00:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Core<b class="caret"></b></a>
<ul class="dropdown-menu ">
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Game.html">Game</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Group.html">Group</a></li>
<li class="class-depth-1"><a href="Phaser.World.html">World</a></li>
<li class="class-depth-1"><a href="Phaser.Loader.html">Loader</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Cache.html">Cache</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Time.html">Time</a></li>
<li class="class-depth-1"><a href="Phaser.Camera.html">Camera</a></li>
<li class="class-depth-1"><a href="Phaser.StateManager.html">State Manager</a></li>
<li class="class-depth-1"><a href="Phaser.TweenManager.html">Tween Manager</a></li>
<li class="class-depth-1"><a href="Phaser.SoundManager.html">Sound Manager</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Input.html">Input Manager</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.ScaleManager.html">Scale Manager</a></li>
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Game Objects<b class="caret"></b></a>
2014-11-15 20:01:46 +00:00
<ul class="dropdown-menu ">
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.GameObjectFactory.html">Factory (game.add)</a></li>
<li class="class-depth-1"><a href="Phaser.GameObjectCreator.html">Creator (game.make)</a></li>
<li class="class-depth-1"><a href="Phaser.Sprite.html">Sprite</a></li>
<li class="class-depth-1"><a href="Phaser.Image.html">Image</a></li>
<li class="class-depth-1"><a href="Phaser.Sound.html">Sound</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Video.html">Video</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Particles.Arcade.Emitter.html">Particle Emitter</a></li>
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Particle.html">Particle</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Text.html">Text</a></li>
<li class="class-depth-1"><a href="Phaser.Tween.html">Tween</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapText.html">BitmapText</a></li>
<li class="class-depth-1"><a href="Phaser.Tilemap.html">Tilemap</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapData.html">BitmapData</a></li>
<li class="class-depth-1"><a href="Phaser.RetroFont.html">RetroFont</a></li>
<li class="class-depth-1"><a href="Phaser.Button.html">Button</a></li>
<li class="class-depth-1"><a href="Phaser.Animation.html">Animation</a></li>
<li class="class-depth-1"><a href="Phaser.Graphics.html">Graphics</a></li>
<li class="class-depth-1"><a href="Phaser.RenderTexture.html">RenderTexture</a></li>
<li class="class-depth-1"><a href="Phaser.TileSprite.html">TileSprite</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Geometry<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Circle.html">Circle</a></li>
<li class="class-depth-1"><a href="Phaser.Ellipse.html">Ellipse</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Line.html">Line</a></li>
<li class="class-depth-1"><a href="Phaser.Matrix.html">Matrix</a></li>
<li class="class-depth-1"><a href="Phaser.Point.html">Point</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Polygon.html">Polygon</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Rectangle.html">Rectangle</a></li>
<li class="class-depth-1"><a href="Phaser.RoundedRectangle.html">Rounded Rectangle</a></li>
2014-11-25 00:23:44 +00:00
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Physics<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Physics.Arcade.html">Arcade Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Arcade.Body.html">Body</a></li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-2"><a href="Phaser.Weapon.html">Weapon</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Physics.P2.html">P2 Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Body.html">Body</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Spring.html">Spring</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a></li>
<li class="class-depth-1"><a href="Phaser.Physics.Ninja.html">Ninja Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Body.html">Body</a></li>
2014-11-15 20:01:46 +00:00
</ul>
</li>
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Input<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.InputHandler.html">Input Handler</a></li>
<li class="class-depth-1"><a href="Phaser.Pointer.html">Pointer</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.DeviceButton.html">Device Button</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Mouse.html">Mouse</a></li>
<li class="class-depth-1"><a href="Phaser.Keyboard.html">Keyboard</a></li>
<li class="class-depth-1"><a href="Phaser.Key.html">Key</a></li>
2016-08-26 00:18:47 +00:00
<li class="class-depth-1"><a href="Phaser.KeyCode.html">Key Codes</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Gamepad.html">Gamepad</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community<b class="caret"></b></a>
<ul class="dropdown-menu ">
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io">Phaser Web Site</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser">Phaser Github</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/examples">Phaser Examples</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser-plugins">Phaser Plugins</a></li>
<li class="class-depth-1"><a href="http://www.html5gamedevs.com/forum/14-phaser/">Forum</a></li>
<li class="class-depth-1"><a href="http://stackoverflow.com/questions/tagged/phaser-framework">Stack Overflow</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="http://phaser.io/learn">Tutorials</a></li>
2016-05-19 11:36:51 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/newsletter">Newsletter</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/twitter">Twitter</a></li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/slack">Slack</a></li>
<li class="class-depth-1"><a href="http://phaser.io/community/donate">Donate</a></li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-1"><a href="https://www.codeandweb.com/texturepacker/phaser">Texture Packer</a></li>
2014-11-25 00:23:44 +00:00
</ul>
</li>
2014-11-15 20:01:46 +00:00
</ul>
</div>
</div>
<div class="row-fluid">
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<div class="span8">
<div id="main">
2013-10-02 14:05:55 +00:00
2014-11-25 00:23:44 +00:00
<!--<h1 class="page-title">Class: InputHandler</h1>-->
2013-11-28 15:57:09 +00:00
<section>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<header>
<h2>
<span class="ancestors"><a href="Phaser.html">Phaser</a>.</span>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
InputHandler
</h2>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
</header>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<article>
<div class="container-overview">
2013-10-02 14:05:55 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="InputHandler"><span class="type-signature"></span>new InputHandler<span class="signature">(sprite)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<div class="description">
<p>The Input Handler is bound to a specific Sprite and is responsible for managing all Input events on that Sprite.</p>
</div>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<h5>Parameters:</h5>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<table class="params table table-striped">
2013-10-02 14:05:55 +00:00
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2013-11-28 15:57:09 +00:00
<td class="name"><code>sprite</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="description last"><p>The Sprite object to which this Input Handler belongs.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-14">line 14</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2013-11-28 15:57:09 +00:00
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
2013-10-02 14:05:55 +00:00
</dd>
2013-11-28 15:57:09 +00:00
</div>
<h3 class="subsection-title">Members</h3>
<dl>
2013-10-02 14:05:55 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="allowHorizontalDrag"><span class="type-signature"></span>allowHorizontalDrag<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Controls if the Sprite is allowed to be dragged horizontally.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
<dt class="tag-default">Default Value:</dt>
2013-11-28 15:57:09 +00:00
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-69">line 69</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="allowVerticalDrag"><span class="type-signature"></span>allowVerticalDrag<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Controls if the Sprite is allowed to be dragged vertically.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-75">line 75</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="boundsRect"><span class="type-signature"></span>boundsRect<span class="type-signature"> :<a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>A region of the game world within which the sprite is restricted during drag.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-161">line 161</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="boundsSprite"><span class="type-signature"></span>boundsSprite<span class="type-signature"> :<a href="Phaser.Sprite.html">Phaser.Sprite</a></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>A Sprite the bounds of which this sprite is restricted during drag.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-167">line 167</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="bringToTop"><span class="type-signature"></span>bringToTop<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>If true when this Sprite is clicked or dragged it will automatically be bought to the top of the Group it is within.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-81">line 81</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checked"><span class="type-signature">&lt;internal> </span>checked<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>A disposable flag used by the Pointer class when performing priority checks.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-36">line 36</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2016-06-09 16:13:31 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
id="downPoint"><span class="type-signature"></span>downPoint<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
<div class="description">
<p>A Point object containing the coordinates of the Pointer when it was first pressed down onto this Sprite.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-207">line 207</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="dragDistanceThreshold"><span class="type-signature"></span>dragDistanceThreshold<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
<div class="description">
<p>The distance, in pixels, the pointer has to move while being held down, before the Sprite thinks it is being dragged.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-197">line 197</a>
</dt>
2015-03-23 23:46:30 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
id="dragFromCenter"><span class="type-signature"></span>dragFromCenter<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
<div class="description">
<p>Is the Sprite dragged from its center, or the point at which the Pointer was pressed down upon it?</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
2016-02-08 17:01:36 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-182">line 182</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="draggable"><span class="type-signature"></span>draggable<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Is this sprite allowed to be dragged by the mouse? true = yes, false = no</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-155">line 155</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="dragOffset"><span class="type-signature"></span>dragOffset<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
<div class="description">
<p>The offset from the Sprites position that dragging takes place from.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
2016-02-08 17:01:36 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-177">line 177</a>
2015-03-23 23:46:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="dragStartPoint"><span class="type-signature"></span>dragStartPoint<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
<div class="description">
<p>The Point from which the most recent drag started from. Useful if you need to return an object to its starting position.</p>
</div>
<dl class="details">
2016-06-09 16:13:31 +00:00
<dt class="tag-source">Source -
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-192">line 192</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="dragStopBlocksInputUp"><span class="type-signature"></span>dragStopBlocksInputUp<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
<div class="description">
<p>If enabled, when the Sprite stops being dragged, it will only dispatch the <code>onDragStop</code> event, and not the <code>onInputUp</code> event. If set to <code>false</code> it will dispatch both events.</p>
</div>
<dl class="details">
2015-03-23 23:46:30 +00:00
<dt class="tag-source">Source -
2016-02-08 17:01:36 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-187">line 187</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-07-18 11:45:51 +00:00
2016-06-09 16:13:31 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
id="dragTimeThreshold"><span class="type-signature"></span>dragTimeThreshold<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
<div class="description">
<p>The amount of time, in ms, the pointer has to be held down over the Sprite before it thinks it is being dragged.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-202">line 202</a>
</dt>
2014-07-18 11:45:51 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="enabled"><span class="type-signature"></span>enabled<span class="type-signature"> :boolean</span></h4>
2014-07-18 11:45:51 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>If enabled the Input Handler will process input requests and monitor pointer activity.</p>
</div>
2014-07-18 11:45:51 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-30">line 30</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="game"><span class="type-signature"></span>game<span class="type-signature"> :<a href="Phaser.Game.html">Phaser.Game</a></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-11-28 15:57:09 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>A reference to the currently running game.</p>
2013-11-28 15:57:09 +00:00
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-24">line 24</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="isDragged"><span class="type-signature"></span>isDragged<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>true if the Sprite is being currently dragged.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-63">line 63</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="pixelPerfectAlpha"><span class="type-signature"></span>pixelPerfectAlpha<span class="type-signature"> :number</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The alpha tolerance threshold. If the alpha value of the pixel matches or is above this value, it's considered a hit.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>255</li></ul></dd>
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-149">line 149</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="pixelPerfectClick"><span class="type-signature"></span>pixelPerfectClick<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Set to true to use pixel perfect hit detection when checking if the pointer is over this Sprite when it's clicked or touched.<br>The x/y coordinates of the pointer are tested against the image in combination with the InputHandler.pixelPerfectAlpha value.<br>This feature only works for display objects with image based textures such as Sprites. It won't work on BitmapText or Rope.<br>Warning: This is expensive so only enable if you really need it. Use a pixel perfect check when testing for clicks or touches on the Sprite.</p>
2014-11-15 20:01:46 +00:00
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-143">line 143</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-02-05 06:29:17 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="pixelPerfectOver"><span class="type-signature"></span>pixelPerfectOver<span class="type-signature"> :boolean</span></h4>
2014-02-05 06:29:17 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Set to true to use pixel perfect hit detection when checking if the pointer is over this Sprite.<br>The x/y coordinates of the pointer are tested against the image in combination with the InputHandler.pixelPerfectAlpha value.<br>This feature only works for display objects with image based textures such as Sprites. It won't work on BitmapText or Rope.<br>Warning: This is expensive, especially on mobile (where it's not even needed!) so only enable if required. Also see the less-expensive InputHandler.pixelPerfectClick. Use a pixel perfect check when testing for pointer over.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-133">line 133</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-02-05 06:29:17 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="priorityID"><span class="type-signature"></span>priorityID<span class="type-signature"> :number</span></h4>
2014-02-05 06:29:17 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>The priorityID is used to determine which game objects should get priority when input events occur. For example if you have<br>several Sprites that overlap, by default the one at the top of the display list is given priority for input events. You can<br>stop this from happening by controlling the priorityID value. The higher the value, the more important they are considered to the Input events.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-02-05 06:29:17 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-45">line 45</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-02-05 06:29:17 +00:00
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="scaleLayer"><span class="type-signature"></span>scaleLayer<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>EXPERIMENTAL: Please do not use this property unless you know what it does. Likely to change in the future.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-02-08 17:01:36 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-172">line 172</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="snapOffset"><span class="type-signature"></span>snapOffset<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>A Point object that contains by how far the Sprite snap is offset.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-87">line 87</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="snapOffsetX"><span class="type-signature"></span>snapOffsetX<span class="type-signature"> :number</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>This defines the top-left X coordinate of the snap grid.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-117">line 117</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="snapOffsetY"><span class="type-signature"></span>snapOffsetY<span class="type-signature"> :number</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>This defines the top-left Y coordinate of the snap grid..</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-123">line 123</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="snapOnDrag"><span class="type-signature"></span>snapOnDrag<span class="type-signature"> :boolean</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>When the Sprite is dragged this controls if the center of the Sprite will snap to the pointer on drag or not.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-93">line 93</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="snapOnRelease"><span class="type-signature"></span>snapOnRelease<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>When the Sprite is dragged this controls if the Sprite will be snapped on release.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-99">line 99</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2015-07-22 14:31:30 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
id="snapPoint"><span class="type-signature"></span>snapPoint<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
<div class="description">
<p>If the sprite is set to snap while dragging this holds the point of the most recent 'snap' event.</p>
</div>
<dl class="details">
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-212">line 212</a>
2015-07-22 14:31:30 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="snapX"><span class="type-signature"></span>snapX<span class="type-signature"> :number</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>When a Sprite has snapping enabled this holds the width of the snap grid.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-105">line 105</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="snapY"><span class="type-signature"></span>snapY<span class="type-signature"> :number</span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>When a Sprite has snapping enabled this holds the height of the snap grid.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-111">line 111</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="sprite"><span class="type-signature"></span>sprite<span class="type-signature"> :<a href="Phaser.Sprite.html">Phaser.Sprite</a></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The Sprite object to which this Input Handler belongs.</p>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-19">line 19</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="useHandCursor"><span class="type-signature"></span>useHandCursor<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>On a desktop browser you can set the 'hand' cursor to appear when moving over the Sprite.</p>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-51">line 51</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checkBoundsRect"><span class="type-signature"></span>checkBoundsRect<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Bounds Rect check for the sprite drag</p>
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1654">line 1654</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checkBoundsSprite"><span class="type-signature"></span>checkBoundsSprite<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Parent Sprite Bounds check for the sprite drag.</p>
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1704">line 1704</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checkPixel"><span class="type-signature"></span>checkPixel<span class="signature">(x, y, <span class="optional">pointer</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Runs a pixel perfect check against the given x/y coordinates of the Sprite this InputHandler is bound to.<br>It compares the alpha value of the pixel and if &gt;= InputHandler.pixelPerfectAlpha it returns true.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
2013-10-02 14:05:55 +00:00
</td>
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The x coordinate to check.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
2013-10-02 14:05:55 +00:00
</td>
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The y coordinate to check.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last"><p>The pointer to get the x/y coordinate from if not passed as the first two parameters.</p></td>
</tr>
2013-10-02 14:05:55 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>true if there is the alpha of the pixel is &gt;= InputHandler.pixelPerfectAlpha</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-799">line 799</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checkPointerDown"><span class="type-signature"></span>checkPointerDown<span class="signature">(pointer, <span class="optional">fastTest</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Checks if the given pointer is both down and over the Sprite this InputHandler belongs to.<br>Use the <code>fastTest</code> flag is to quickly check just the bounding hit area even if <code>InputHandler.pixelPerfectOver</code> is <code>true</code>.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-07-18 11:45:51 +00:00
<th>Argument</th>
2014-07-18 11:45:51 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
</td>
2014-07-18 11:45:51 +00:00
<td class="attributes">
</td>
2014-07-18 11:45:51 +00:00
<td class="default">
</td>
<td class="description last"></td>
</tr>
2014-07-18 11:45:51 +00:00
<tr>
<td class="name"><code>fastTest</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>Force a simple hit area check even if <code>pixelPerfectOver</code> is true for this object?</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the pointer is down, otherwise false.</p>
</div>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-710">line 710</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="checkPointerOver"><span class="type-signature"></span>checkPointerOver<span class="signature">(pointer, <span class="optional">fastTest</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Checks if the given pointer is over the Sprite this InputHandler belongs to.<br>Use the <code>fastTest</code> flag is to quickly check just the bounding hit area even if <code>InputHandler.pixelPerfectOver</code> is <code>true</code>.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-07-18 11:45:51 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2014-07-18 11:45:51 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
2013-10-02 14:05:55 +00:00
</td>
2014-07-18 11:45:51 +00:00
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
2014-07-18 11:45:51 +00:00
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
2014-07-18 11:45:51 +00:00
<tr>
<td class="name"><code>fastTest</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>Force a simple hit area check even if <code>pixelPerfectOver</code> is true for this object?</p></td>
</tr>
2013-10-02 14:05:55 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-755">line 755</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="destroy"><span class="type-signature"></span>destroy<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Clean up memory.</p>
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-430">line 430</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="disableDrag"><span class="type-signature"></span>disableDrag<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Stops this sprite from being able to be dragged.<br>If it is currently the target of an active drag it will be stopped immediately; also disables any set callbacks.</p>
2013-10-02 14:05:55 +00:00
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1441">line 1441</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="disableSnap"><span class="type-signature"></span>disableSnap<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Stops the sprite from snapping to a grid during drag or release.</p>
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1642">line 1642</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="downDuration"><span class="type-signature"></span>downDuration<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>If the pointer is currently over this Sprite this returns how long it has been there for in milliseconds.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
<p>The number of milliseconds the pointer has been pressed down on the Sprite, or -1 if not over.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1363">line 1363</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="enableDrag"><span class="type-signature"></span>enableDrag<span class="signature">(<span class="optional">lockCenter</span>, <span class="optional">bringToTop</span>, <span class="optional">pixelPerfect</span>, <span class="optional">alphaThreshold</span>, <span class="optional">boundsRect</span>, <span class="optional">boundsSprite</span>)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Allow this Sprite to be dragged by any valid pointer.</p>
<p>When the drag begins the Sprite.events.onDragStart event will be dispatched.</p>
<p>When the drag completes by way of the user letting go of the pointer that was dragging the sprite, the Sprite.events.onDragStop event is dispatched.</p>
2016-06-09 16:13:31 +00:00
<p>You can control the thresholds over when a drag starts via the properties:</p>
2016-08-26 00:18:47 +00:00
<p><code>Pointer.dragDistanceThreshold</code> the distance, in pixels, that the pointer has to move<br>before the drag will start.</p>
<p><code>Pointer.dragTimeThreshold</code> the time, in ms, that the pointer must be held down on<br>the Sprite before the drag will start.</p>
2016-06-09 16:13:31 +00:00
<p>You can set either (or both) of these properties after enabling a Sprite for drag.</p>
2016-08-26 00:18:47 +00:00
<p>For the duration of the drag the Sprite.events.onDragUpdate event is dispatched. This event is only dispatched when the pointer actually<br>changes position and moves. The event sends 5 parameters: <code>sprite</code>, <code>pointer</code>, <code>dragX</code>, <code>dragY</code> and <code>snapPoint</code>.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2013-11-28 15:57:09 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>lockCenter</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
false
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>If false the Sprite will drag from where you click it minus the dragOffset. If true it will center itself to the tip of the mouse pointer.</p></td>
</tr>
<tr>
<td class="name"><code>bringToTop</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
false
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>If true the Sprite will be bought to the top of the rendering list in its current Group.</p></td>
</tr>
<tr>
<td class="name"><code>pixelPerfect</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
false
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>If true it will use a pixel perfect test to see if you clicked the Sprite. False uses the bounding box.</p></td>
</tr>
<tr>
<td class="name"><code>alphaThreshold</code></td>
2013-11-28 15:57:09 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
255
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If using pixel perfect collision this specifies the alpha level from 0 to 255 above which a collision is processed.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>boundsRect</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type"><a href="Phaser.Rectangle.html">Phaser.Rectangle</a></span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
null
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If you want to restrict the drag of this sprite to a specific Rectangle, pass the Phaser.Rectangle here, otherwise it's free to drag anywhere.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>boundsSprite</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
null
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If you want to restrict the drag of this sprite to within the bounding box of another sprite, pass it here.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1383">line 1383</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="enableSnap"><span class="type-signature"></span>enableSnap<span class="signature">(snapX, snapY, <span class="optional">onDrag</span>, <span class="optional">onRelease</span>, <span class="optional">snapOffsetX</span>, <span class="optional">snapOffsetY</span>)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Make this Sprite snap to the given grid either during drag or when it's released.<br>For example 16x16 as the snapX and snapY would make the sprite snap to every 16 pixels.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2013-11-28 15:57:09 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>snapX</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">number</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>The width of the grid cell to snap to.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>snapY</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">number</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>The height of the grid cell to snap to.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>onDrag</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
true
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If true the sprite will snap to the grid while being dragged.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>onRelease</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
false
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If true the sprite will snap to the grid when released.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
2014-02-05 06:29:17 +00:00
<tr>
<td class="name"><code>snapOffsetX</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Used to offset the top-left starting point of the snap grid.</p></td>
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>snapOffsetY</code></td>
2014-02-05 06:29:17 +00:00
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Used to offset the top-left starting point of the snap grid.</p></td>
</tr>
2013-10-02 14:05:55 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1614">line 1614</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-10-09 15:12:53 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="globalToLocalX"><span class="type-signature"></span>globalToLocalX<span class="signature">(x)</span><span class="type-signature"></span></h4>
2014-10-09 15:12:53 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
<div class="description">
<p>Warning: EXPERIMENTAL</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1524">line 1524</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-10-09 15:12:53 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="globalToLocalY"><span class="type-signature"></span>globalToLocalY<span class="signature">(y)</span><span class="type-signature"></span></h4>
2014-10-09 15:12:53 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
<div class="description">
<p>Warning: EXPERIMENTAL</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1542">line 1542</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-07-18 11:45:51 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="isPixelPerfect"><span class="type-signature"></span>isPixelPerfect<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-07-18 11:45:51 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
<div class="description">
<p>Is this object using pixel perfect checking?</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the this InputHandler has either <code>pixelPerfectClick</code> or <code>pixelPerfectOver</code> set to <code>true</code>.</p>
</div>
</div>
2014-07-18 11:45:51 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-495">line 495</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-07-18 11:45:51 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="justOut"><span class="type-signature"></span>justOut<span class="signature">(<span class="optional">pointerId</span>, delay)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Returns true if the pointer has left the Sprite within the specified delay time (defaults to 500ms, half a second)</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>delay</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The time below which the pointer is considered as just out.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1292">line 1292</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="justOver"><span class="type-signature"></span>justOver<span class="signature">(<span class="optional">pointerId</span>, delay)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Returns true if the pointer has entered the Sprite within the specified delay time (defaults to 500ms, half a second)</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>delay</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The time below which the pointer is considered as just over.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1275">line 1275</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="justPressed"><span class="type-signature"></span>justPressed<span class="signature">(<span class="optional">pointerId</span>, delay)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Returns true if the pointer has touched or clicked on the Sprite within the specified delay time (defaults to 500ms, half a second)</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>delay</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The time below which the pointer is considered as just over.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1309">line 1309</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="justReleased"><span class="type-signature"></span>justReleased<span class="signature">(<span class="optional">pointerId</span>, delay)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Returns true if the pointer was touching this Sprite, but has been released within the specified delay time (defaults to 500ms, half a second)</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>delay</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The time below which the pointer is considered as just out.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1326">line 1326</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="overDuration"><span class="type-signature"></span>overDuration<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>If the pointer is currently over this Sprite this returns how long it has been there for in milliseconds.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
<p>The number of milliseconds the pointer has been over the Sprite, or -1 if not over.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1343">line 1343</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerDown"><span class="type-signature"></span>pointerDown<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>If the Pointer is down this returns true.<br>This <em>only</em> checks if the Pointer is down, not if it's down over any specific Sprite.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
0
</td>
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
-
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-desc param-desc">
<ul>
<li>True if the given pointer is down, otherwise false.</li>
</ul>
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-539">line 539</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerDragged"><span class="type-signature"></span>pointerDragged<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Is this sprite being dragged by the mouse or not?</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the pointer is dragging an object, otherwise false.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-695">line 695</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerOut"><span class="type-signature"></span>pointerOut<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Is the Pointer outside of this Sprite?</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
(check all)
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"><p>The ID number of a Pointer to check. If you don't provide a number it will check all Pointers.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the given pointer (if a index was given, or any pointer if not) is out of this object.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-634">line 634</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerOver"><span class="type-signature"></span>pointerOver<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Is the Pointer over this Sprite?</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
(check all)
</td>
<td class="description last"><p>The ID number of a Pointer to check. If you don't provide a number it will check all Pointers.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<ul>
<li>True if the given pointer (if a index was given, or any pointer if not) is over this object.</li>
</ul>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-601">line 601</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerTimeDown"><span class="type-signature"></span>pointerTimeDown<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>A timestamp representing when the Pointer first touched the touchscreen.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
(check all)
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-571">line 571</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerTimeOut"><span class="type-signature"></span>pointerTimeOut<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>A timestamp representing when the Pointer left the touchscreen.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-680">line 680</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerTimeOver"><span class="type-signature"></span>pointerTimeOver<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>A timestamp representing when the Pointer first touched the touchscreen.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-665">line 665</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerTimeUp"><span class="type-signature"></span>pointerTimeUp<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>A timestamp representing when the Pointer left the touchscreen.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
<span class="param-type">number</span>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
-
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-desc param-desc">
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
</div>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-586">line 586</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerUp"><span class="type-signature"></span>pointerUp<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>If the Pointer is up this returns true.<br>This <em>only</em> checks if the Pointer is up, not if it's up over any specific Sprite.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<ul>
<li>True if the given pointer is up, otherwise false.</li>
</ul>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-555">line 555</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerX"><span class="type-signature"></span>pointerX<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>The x coordinate of the Input pointer, relative to the top-left of the parent Sprite.<br>This value is only set when the pointer is over this Sprite.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="default">
0
</td>
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
<p>The x coordinate of the Input pointer.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-507">line 507</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="pointerY"><span class="type-signature"></span>pointerY<span class="signature">(<span class="optional">pointerId</span>)</span><span class="type-signature"> &rarr; {number}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>The y coordinate of the Input pointer, relative to the top-left of the parent Sprite<br>This value is only set when the pointer is over this Sprite.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>pointerId</code></td>
2013-10-02 14:05:55 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">integer</span>
2013-10-02 14:05:55 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">number</span>
-
</div>
<div class="returns-desc param-desc">
<p>The y coordinate of the Input pointer.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-523">line 523</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="reset"><span class="type-signature"></span>reset<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2013-11-28 15:57:09 +00:00
<p>Resets the Input Handler and disables it.</p>
2013-10-02 14:05:55 +00:00
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-382">line 382</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="setDragLock"><span class="type-signature"></span>setDragLock<span class="signature">(<span class="optional">allowHorizontal</span>, <span class="optional">allowVertical</span>)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Restricts this sprite to drag movement only on the given axis. Note: If both are set to false the sprite will never move!</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2013-11-28 15:57:09 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>allowHorizontal</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
true
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>To enable the sprite to be dragged horizontally set to true, otherwise false.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>allowVertical</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type">boolean</span>
2013-10-02 14:05:55 +00:00
</td>
2013-11-28 15:57:09 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="default">
true
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>To enable the sprite to be dragged vertically set to true, otherwise false.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1597">line 1597</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-07-01 15:57:13 +00:00
id="start"><span class="type-signature"></span>start<span class="signature">(<span class="optional">priority</span>, <span class="optional">useHandCursor</span>)</span><span class="type-signature"> &rarr; {<a href="Phaser.Sprite.html">Phaser.Sprite</a>}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2013-11-28 15:57:09 +00:00
<p>Starts the Input Handler running. This is called automatically when you enable input on a Sprite, or can be called directly if you need to set a specific priority.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2016-07-01 15:57:13 +00:00
<th>Argument</th>
2013-10-02 14:05:55 +00:00
2016-07-01 15:57:13 +00:00
<th>Default</th>
2013-10-02 14:05:55 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>priority</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2016-07-01 15:57:13 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2016-07-01 15:57:13 +00:00
</td>
<td class="default">
0
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>Higher priority sprites take click priority over low-priority sprites when they are stacked on-top of each other.</p></td>
2013-10-02 14:05:55 +00:00
</tr>
<tr>
<td class="name"><code>useHandCursor</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
2016-07-01 15:57:13 +00:00
<td class="attributes">
&lt;optional><br>
2013-10-02 14:05:55 +00:00
2016-07-01 15:57:13 +00:00
</td>
<td class="default">
false
</td>
2013-10-02 14:05:55 +00:00
2013-11-28 15:57:09 +00:00
<td class="description last"><p>If true the Sprite will show the hand cursor on mouse-over (doesn't apply to mobile browsers)</p></td>
2013-10-02 14:05:55 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
-
</div>
<div class="returns-desc param-desc">
<p>The Sprite object to which the Input Handler is bound.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-284">line 284</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="startDrag"><span class="type-signature"></span>startDrag<span class="signature">(pointer)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Called by Pointer when drag starts on this Sprite. Should not usually be called directly.</p>
</div>
2013-11-28 15:57:09 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1464">line 1464</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="stop"><span class="type-signature"></span>stop<span class="signature">()</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2013-11-28 15:57:09 +00:00
<p>Stops the Input Handler from running.</p>
2013-10-02 14:05:55 +00:00
</div>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-410">line 410</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="stopDrag"><span class="type-signature"></span>stopDrag<span class="signature">(pointer)</span><span class="type-signature"></span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
<p>Called by Pointer when drag is stopped on this Sprite. Should not usually be called directly.</p>
</div>
2013-11-28 15:57:09 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-1560">line 1560</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="update"><span class="type-signature">&lt;internal> </span>update<span class="signature">(pointer)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2013-10-02 14:05:55 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Internal Update method. This is called automatically and handles the Pointer<br>and drag update loops.</p>
2013-10-02 14:05:55 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pointer</code></td>
<td class="type">
2013-11-28 15:57:09 +00:00
<span class="param-type"><a href="Phaser.Pointer.html">Phaser.Pointer</a></span>
2013-10-02 14:05:55 +00:00
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2016-06-09 16:13:31 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the pointer is still active, otherwise false.</p>
</div>
</div>
2013-10-02 14:05:55 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2013-10-02 14:05:55 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-868">line 868</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
2014-03-24 12:41:45 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="validForInput"><span class="type-signature">&lt;internal> </span>validForInput<span class="signature">(highestID, highestRenderID, <span class="optional">includePixelPerfect</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-03-24 12:41:45 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
<div class="description">
2016-08-26 00:18:47 +00:00
<p>Checks if the object this InputHandler is bound to is valid for consideration in the Pointer move event.<br>This is called by Phaser.Pointer and shouldn't typically be called directly.</p>
2014-03-24 12:41:45 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-07-18 11:45:51 +00:00
<th>Argument</th>
2014-03-24 12:41:45 +00:00
2014-07-18 11:45:51 +00:00
<th>Default</th>
2014-03-24 12:41:45 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>highestID</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2014-07-18 11:45:51 +00:00
<td class="attributes">
</td>
2014-03-24 12:41:45 +00:00
2014-07-18 11:45:51 +00:00
<td class="default">
</td>
2014-03-24 12:41:45 +00:00
<td class="description last"><p>The highest ID currently processed by the Pointer.</p></td>
</tr>
<tr>
<td class="name"><code>highestRenderID</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
2014-07-18 11:45:51 +00:00
<td class="attributes">
2014-03-24 12:41:45 +00:00
2014-07-18 11:45:51 +00:00
</td>
<td class="default">
</td>
2014-03-24 12:41:45 +00:00
<td class="description last"><p>The highest Render Order ID currently processed by the Pointer.</p></td>
</tr>
2014-07-18 11:45:51 +00:00
<tr>
<td class="name"><code>includePixelPerfect</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
true
</td>
<td class="description last"><p>If this object has <code>pixelPerfectClick</code> or <code>pixelPerfectOver</code> set should it be considered as valid?</p></td>
</tr>
2014-03-24 12:41:45 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the object this InputHandler is bound to should be considered as valid for input detection.</p>
</div>
</div>
2014-03-24 12:41:45 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-08-26 00:18:47 +00:00
<a href="src_input_InputHandler.js.html">input/InputHandler.js</a>, <a href="src_input_InputHandler.js.html#sunlight-1-line-456">line 456</a>
2014-11-15 20:01:46 +00:00
</dt>
2013-10-02 14:05:55 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2013-10-02 14:05:55 +00:00
</dd>
</dl>
</article>
</section>
</div>
<div class="clearfix"></div>
<footer>
<span class="copyright">
2016-04-22 14:15:28 +00:00
Phaser Copyright © 2012-2016 Photon Storm Ltd.
2013-10-02 14:05:55 +00:00
</span>
<br />
<span class="jsdoc-message">
2016-08-26 00:18:47 +00:00
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
on Fri Aug 26 2016 01:16:13 GMT+0100 (BST) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
2013-10-02 14:05:55 +00:00
</span>
</footer>
</div>
<div class="span3">
<div id="toc"></div>
</div>
<br clear="both">
</div>
</div>
<script src="scripts/sunlight.js"></script>
<script src="scripts/sunlight.javascript.js"></script>
<script src="scripts/sunlight-plugin.doclinks.js"></script>
<script src="scripts/sunlight-plugin.linenumbers.js"></script>
<script src="scripts/sunlight-plugin.menu.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.scrollTo.js"></script>
<script src="scripts/jquery.localScroll.js"></script>
<script src="scripts/bootstrap-dropdown.js"></script>
<script src="scripts/toc.js"></script>
<script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script>
<script>
$( function () {
$( "#toc" ).toc( {
2014-04-10 22:13:43 +00:00
anchorName : function(i, heading, prefix) {
return $(heading).attr("id") || ( prefix + i );
},
2013-10-02 14:05:55 +00:00
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
</script>
</body>
</html>