mirror of
https://github.com/wassname/phaser.git
synced 2026-06-29 16:30:29 +08:00
Loads of issues reported on Github resolved (sprite crop, music resume, etc).
This commit is contained in:
+13
-22
@@ -395,6 +395,19 @@ Phaser.Input.prototype = {
|
||||
this.mspointer.start();
|
||||
this.mousePointer.active = true;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Stops all of the Input Managers from running.
|
||||
* @method Phaser.Input#destroy
|
||||
*/
|
||||
destroy: function () {
|
||||
|
||||
this.mouse.stop();
|
||||
this.keyboard.stop();
|
||||
this.touch.stop();
|
||||
this.mspointer.stop();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -681,28 +694,6 @@ Phaser.Input.prototype = {
|
||||
|
||||
return null;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the distance between two Pointer objects.
|
||||
* @method Phaser.Input#getDistance
|
||||
* @param {Pointer} pointer1
|
||||
* @param {Pointer} pointer2
|
||||
* @return {Description} Description.
|
||||
*/
|
||||
getDistance: function (pointer1, pointer2) {
|
||||
// return Phaser.Vec2Utils.distance(pointer1.position, pointer2.position);
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the angle between two Pointer objects.
|
||||
* @method Phaser.Input#getAngle
|
||||
* @param {Pointer} pointer1
|
||||
* @param {Pointer} pointer2
|
||||
* @return {Description} Description.
|
||||
*/
|
||||
getAngle: function (pointer1, pointer2) {
|
||||
// return Phaser.Vec2Utils.angle(pointer1.position, pointer2.position);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user