mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Removed referene to Mouse class (no longer used)
This commit is contained in:
parent
b85b341bfd
commit
3ee14a88a6
1 changed files with 13 additions and 13 deletions
|
@ -16,7 +16,7 @@ var Bounds = require('../geometry/Bounds');
|
||||||
var Events = require('../core/Events');
|
var Events = require('../core/Events');
|
||||||
var Grid = require('../collision/Grid');
|
var Grid = require('../collision/Grid');
|
||||||
var Vector = require('../geometry/Vector');
|
var Vector = require('../geometry/Vector');
|
||||||
var Mouse = require('../core/Mouse');
|
// var Mouse = require('../core/Mouse');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
@ -247,12 +247,12 @@ var Mouse = require('../core/Mouse');
|
||||||
|
|
||||||
// update mouse
|
// update mouse
|
||||||
if (render.mouse) {
|
if (render.mouse) {
|
||||||
Mouse.setScale(render.mouse, {
|
// Mouse.setScale(render.mouse, {
|
||||||
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
// x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||||
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
// y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
||||||
});
|
// });
|
||||||
|
|
||||||
Mouse.setOffset(render.mouse, render.bounds.min);
|
// Mouse.setOffset(render.mouse, render.bounds.min);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -347,12 +347,12 @@ var Mouse = require('../core/Mouse');
|
||||||
|
|
||||||
// update mouse
|
// update mouse
|
||||||
if (render.mouse) {
|
if (render.mouse) {
|
||||||
Mouse.setScale(render.mouse, {
|
// Mouse.setScale(render.mouse, {
|
||||||
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
// x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||||
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
// y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
||||||
});
|
// });
|
||||||
|
|
||||||
Mouse.setOffset(render.mouse, render.bounds.min);
|
// Mouse.setOffset(render.mouse, render.bounds.min);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
constraints = allConstraints;
|
constraints = allConstraints;
|
||||||
|
@ -394,8 +394,8 @@ var Mouse = require('../core/Mouse');
|
||||||
if (options.showVertexNumbers)
|
if (options.showVertexNumbers)
|
||||||
Render.vertexNumbers(render, bodies, context);
|
Render.vertexNumbers(render, bodies, context);
|
||||||
|
|
||||||
if (options.showMousePosition)
|
// if (options.showMousePosition)
|
||||||
Render.mousePosition(render, render.mouse, context);
|
// Render.mousePosition(render, render.mouse, context);
|
||||||
|
|
||||||
Render.constraints(constraints, context);
|
Render.constraints(constraints, context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue