mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
altered define paths
This commit is contained in:
parent
69f52d96fc
commit
75205274bc
1 changed files with 5 additions and 5 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
define(["Chuck/Control/Key"], function(Key){
|
define(["Game/Client/Control/Key"], function(Key){
|
||||||
|
|
||||||
function KeyboardInput (inputControlUnit) {
|
function KeyboardInput (keyboardController) {
|
||||||
|
|
||||||
this._registry = {};
|
this._registry = {};
|
||||||
this._inputControlUnit = inputControlUnit;
|
this._keyboardController = keyboardController;
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
@ -61,12 +61,12 @@ define(["Chuck/Control/Key"], function(Key){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
self._inputControlUnit[callback]();
|
self._keyboardController[callback]();
|
||||||
} else {
|
} else {
|
||||||
if (key.getActive()) {
|
if (key.getActive()) {
|
||||||
callback = key.getKeyFrameFunction();
|
callback = key.getKeyFrameFunction();
|
||||||
if (callback) {
|
if (callback) {
|
||||||
self._inputControlUnit[callback]();
|
self._keyboardController[callback]();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue