mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +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 Grid = require('../collision/Grid');
|
||||
var Vector = require('../geometry/Vector');
|
||||
var Mouse = require('../core/Mouse');
|
||||
// var Mouse = require('../core/Mouse');
|
||||
|
||||
(function() {
|
||||
|
||||
|
@ -247,12 +247,12 @@ var Mouse = require('../core/Mouse');
|
|||
|
||||
// update mouse
|
||||
if (render.mouse) {
|
||||
Mouse.setScale(render.mouse, {
|
||||
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
||||
});
|
||||
// Mouse.setScale(render.mouse, {
|
||||
// x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||
// 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
|
||||
if (render.mouse) {
|
||||
Mouse.setScale(render.mouse, {
|
||||
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
|
||||
});
|
||||
// Mouse.setScale(render.mouse, {
|
||||
// x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
|
||||
// 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 {
|
||||
constraints = allConstraints;
|
||||
|
@ -394,8 +394,8 @@ var Mouse = require('../core/Mouse');
|
|||
if (options.showVertexNumbers)
|
||||
Render.vertexNumbers(render, bodies, context);
|
||||
|
||||
if (options.showMousePosition)
|
||||
Render.mousePosition(render, render.mouse, context);
|
||||
// if (options.showMousePosition)
|
||||
// Render.mousePosition(render, render.mouse, context);
|
||||
|
||||
Render.constraints(constraints, context);
|
||||
|
||||
|
|
Loading…
Reference in a new issue