begin of event management

This commit is contained in:
overflowerror 2014-07-03 15:23:14 +02:00
parent 7321f3c08e
commit 7c9c570fb2

25
data/scripts/Events.js Normal file
View file

@ -0,0 +1,25 @@
var Event = function() {
}
var KeyEvent = function() {
}
KeyEvent.SpecialKeys = {
non : 0,
up : 1,
down : 2,
left : 3,
right : 4,
esc : 5,
enter : 6,
backspace: 7,
del : 8
};
KeyEvent.prototype = new Event();
KeyEvent.prototype.char = "";
KeyEvent.prototype.specialKey = KeyEvent.SpecialKeys.non;
KeyEvent.prototype.modifier = {
ctrl : false,
meta : false,
alt : false,
altgr: false
}