mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +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._inputControlUnit = inputControlUnit;
|
||||
this._keyboardController = keyboardController;
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
|
@ -61,12 +61,12 @@ define(["Chuck/Control/Key"], function(Key){
|
|||
}
|
||||
|
||||
if (callback) {
|
||||
self._inputControlUnit[callback]();
|
||||
self._keyboardController[callback]();
|
||||
} else {
|
||||
if (key.getActive()) {
|
||||
callback = key.getKeyFrameFunction();
|
||||
if (callback) {
|
||||
self._inputControlUnit[callback]();
|
||||
self._keyboardController[callback]();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue