don't register keyboard controls on top of editor controls
parent
b6b390315f
commit
ff68ee618f
|
@ -76,7 +76,7 @@ GameLib.System.prototype.createInstance = function() {
|
|||
*/
|
||||
GameLib.System.prototype.start = function() {
|
||||
this.started = true;
|
||||
console.log('starting ' + this.name);
|
||||
// console.log('starting ' + this.name);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -85,7 +85,7 @@ GameLib.System.prototype.start = function() {
|
|||
*/
|
||||
GameLib.System.prototype.stop = function() {
|
||||
this.started = false;
|
||||
console.log('stopping ' + this.name);
|
||||
// console.log('stopping ' + this.name);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -167,7 +167,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
|
|||
}
|
||||
|
||||
if (data.component instanceof GameLib.Controls.Keyboard) {
|
||||
if (this.keyboardControls.length > 0) {
|
||||
if (this.keyboardControls.length > 0 || this.editorControls.length > 0) {
|
||||
console.log('ignoring multiple keyboard controls')
|
||||
} else {
|
||||
this.keyboardControls.push(data.component);
|
||||
|
|
Loading…
Reference in New Issue