mirror of
https://github.com/wassname/phaser.git
synced 2026-07-01 16:50:43 +08:00
Lots of documentation updates and new Loader examples.
This commit is contained in:
@@ -199,6 +199,8 @@ Phaser.InputHandler.prototype = {
|
||||
*/
|
||||
start: function (priority, useHandCursor) {
|
||||
|
||||
console.log('InputHandler start');
|
||||
|
||||
priority = priority || 0;
|
||||
if (typeof useHandCursor == 'undefined') { useHandCursor = false; }
|
||||
|
||||
|
||||
+1
-9
@@ -41,7 +41,7 @@ Phaser.Mouse = function (game) {
|
||||
/**
|
||||
* @property {boolean} capture - If true the DOM mouse events will have event.preventDefault applied to them, if false they will propogate fully.
|
||||
*/
|
||||
this.capture = true;
|
||||
this.capture = false;
|
||||
|
||||
/**
|
||||
* @property {number} button- The type of click, either: Phaser.Mouse.NO_BUTTON, Phaser.Mouse.LEFT_BUTTON, Phaser.Mouse.MIDDLE_BUTTON or Phaser.Mouse.RIGHT_BUTTON.
|
||||
@@ -144,10 +144,6 @@ Phaser.Mouse.prototype = {
|
||||
return _this.onMouseUp(event);
|
||||
};
|
||||
|
||||
// this.game.renderer.view.addEventListener('mousedown', this._onMouseDown, true);
|
||||
// this.game.renderer.view.addEventListener('mousemove', this._onMouseMove, true);
|
||||
// this.game.renderer.view.addEventListener('mouseup', this._onMouseUp, true);
|
||||
|
||||
document.addEventListener('mousedown', this._onMouseDown, true);
|
||||
document.addEventListener('mousemove', this._onMouseMove, true);
|
||||
document.addEventListener('mouseup', this._onMouseUp, true);
|
||||
@@ -323,10 +319,6 @@ Phaser.Mouse.prototype = {
|
||||
*/
|
||||
stop: function () {
|
||||
|
||||
// this.game.stage.canvas.removeEventListener('mousedown', this._onMouseDown, true);
|
||||
// this.game.stage.canvas.removeEventListener('mousemove', this._onMouseMove, true);
|
||||
// this.game.stage.canvas.removeEventListener('mouseup', this._onMouseUp, true);
|
||||
|
||||
document.removeEventListener('mousedown', this._onMouseDown, true);
|
||||
document.removeEventListener('mousemove', this._onMouseMove, true);
|
||||
document.removeEventListener('mouseup', this._onMouseUp, true);
|
||||
|
||||
Reference in New Issue
Block a user