Input Handler 90% there.

This commit is contained in:
Richard Davey
2013-09-08 22:38:19 +01:00
parent abe344b408
commit ebda1f99e3
10 changed files with 183 additions and 65 deletions
+5 -7
View File
@@ -370,7 +370,7 @@ Phaser.Input.prototype = {
**/
reset: function (hard) {
if (typeof hard === "undefined") { hard = false; }
hard = hard || false;
this.keyboard.reset();
this.mousePointer.reset();
@@ -428,7 +428,8 @@ Phaser.Input.prototype = {
**/
startPointer: function (event) {
if (this.maxPointers < 10 && this.totalActivePointers == this.maxPointers) {
if (this.maxPointers < 10 && this.totalActivePointers == this.maxPointers)
{
return null;
}
@@ -525,7 +526,7 @@ Phaser.Input.prototype = {
**/
getPointer: function (state) {
if (typeof state === "undefined") { state = false; }
state = state || false;
if (this.pointer1.active == state)
{
@@ -599,10 +600,7 @@ Phaser.Input.prototype = {
**/
getAngle: function (pointer1, pointer2) {
// return Phaser.Vec2Utils.angle(pointer1.position, pointer2.position);
},
addGameObject: function() {},
removeGameObject: function() {},
}
};