New sql files and improved Logger.js

This commit is contained in:
Thomas FORGIONE
2015-05-19 11:50:12 +02:00
parent ad0b759e5e
commit df04a1bbfb
3 changed files with 65 additions and 2 deletions

View File

@@ -24,3 +24,23 @@ BD.Event.CoinClicked.prototype.send = function() {
BD.Private.sendData(url, data);
}
BD.Event.KeyboardEvent = function() {};
BD.Event.KeyboardEvent.prototype.send = function() {
var url = "/keyboard-event";
var data = {
camera: {
// Compact camera
position: {
x: this.camera.position.x,
y: this.camera.position.y,
z: this.camera.position.z
},
target: {
x: this.camera.target.x,
y: this.camera.target.y,
z: this.camera.target.z
}
}
};
BD.Private.sendData(url, data);
}