mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Only consider inputEnabled cameras and removed some old jsdocs
This commit is contained in:
parent
ed59579220
commit
fae3223000
2 changed files with 1 additions and 6 deletions
|
@ -1,10 +1,5 @@
|
|||
/**
|
||||
* This will return the local coordinates of the specified displayObject based on the given Pointer.
|
||||
*
|
||||
* @method Phaser.Input#getLocalPosition
|
||||
* @param {Phaser.Sprite|Phaser.Image} gameObject - The DisplayObject to get the local coordinates for.
|
||||
* @param {Phaser.Pointer} pointer - The Pointer to use in the check against the gameObject.
|
||||
* @return {Phaser.Point} A point containing the coordinates of the Pointer position relative to the DisplayObject.
|
||||
*/
|
||||
var GetTransformedPoint = function (matrix, gameObject, x, y, output)
|
||||
{
|
||||
|
|
|
@ -204,7 +204,7 @@ var CameraManager = new Class({
|
|||
{
|
||||
var camera = cameras[i];
|
||||
|
||||
if (RectangleContains(camera, pointer.x, pointer.y))
|
||||
if (camera.inputEnabled && RectangleContains(camera, pointer.x, pointer.y))
|
||||
{
|
||||
return camera;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue