mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
implemented mouse looking
This commit is contained in:
parent
88d70f2549
commit
5f7917c5cc
9 changed files with 117 additions and 19 deletions
22
app/Game/Client/Control/Input/XyInput.js
Normal file
22
app/Game/Client/Control/Input/XyInput.js
Normal 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;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue