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
+3 -1
View File
@@ -158,7 +158,9 @@ L3D.DB.Event.KeyboardEvent.prototype.send = function() {
var url = "/posts/keyboard-event";
var data = {
camera: L3D.DB.Private.compactCamera(this.camera)
camera: L3D.DB.Private.compactCamera(this.camera),
keycode: this.keycode, // -1 represents mouse event
keypressed: this.keypressed // mousepressed if keycode === -1
};
L3D.DB.Private.sendData(url, data);