mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
replaced NotificationCenter with Nc
This commit is contained in:
parent
da913c4709
commit
672a46efa8
35 changed files with 160 additions and 161 deletions
|
|
@ -5,7 +5,7 @@ define([
|
|||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (Parent, DomController, Settings, NotificationCenter) {
|
||||
function (Parent, DomController, Settings, Nc) {
|
||||
|
||||
function MouseInput() {
|
||||
Parent.call(this);
|
||||
|
|
@ -37,7 +37,7 @@ function (Parent, DomController, Settings, NotificationCenter) {
|
|||
var x = (((e.clientX - this.offsetLeft) / Settings.STAGE_WIDTH) * 2) - 1;
|
||||
var y = (((Settings.STAGE_HEIGHT - (e.clientY - this.offsetTop)) / Settings.STAGE_HEIGHT) * 2) -1;
|
||||
|
||||
NotificationCenter.trigger("input/onHandActionRequest", x, y);
|
||||
Nc.trigger("input/onHandActionRequest", x, y);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ define([
|
|||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (NotificationCenter) {
|
||||
function (Nc) {
|
||||
|
||||
function XyInput() {
|
||||
this.x = null;
|
||||
|
|
@ -12,7 +12,7 @@ function (NotificationCenter) {
|
|||
XyInput.prototype.onXyChange = function(x, y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
NotificationCenter.trigger('input/onXyChange', x, y);
|
||||
Nc.trigger('input/onXyChange', x, y);
|
||||
}
|
||||
|
||||
return XyInput;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue