Here it is...

This commit is contained in:
Thomas FORGIONE
2015-08-04 18:59:24 +02:00
parent 04a85123f5
commit 3a91a33d74
11 changed files with 352 additions and 138 deletions

View File

@@ -582,6 +582,8 @@ L3D.PointerCamera.prototype.onKeyEvent = function(event, toSet) {
// Log any change
var e = new L3D.DB.Event.KeyboardEvent();
e.camera = this;
e.keypressed = toSet;
e.keycode = event.keyCode;
e.send();
}
};
@@ -667,6 +669,8 @@ L3D.PointerCamera.prototype.onMouseUp = function(event) {
if (this.dragging && this.mouseMoved && !this.moving && !this.movingHermite) {
var e = new L3D.DB.Event.KeyboardEvent();
e.camera = this;
e.keypressed = false;
e.keycode = -1;
e.send();
}