implemented mouse looking

This commit is contained in:
logsol 2013-12-12 18:42:27 +01:00
parent 88d70f2549
commit 5f7917c5cc
9 changed files with 117 additions and 19 deletions

View file

@ -0,0 +1,22 @@
define([
"Game/Core/NotificationCenter"
],
function (NotificationCenter) {
function XyInput() {
this.x = null;
this.y = null
}
XyInput.prototype.onXyChange = function(x, y) {
this.x = x;
this.y = y;
NotificationCenter.trigger('onXyChange', x, y);
}
return XyInput;
});