mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
52 lines
No EOL
1.2 KiB
JavaScript
Executable file
52 lines
No EOL
1.2 KiB
JavaScript
Executable file
define(function () {
|
|
|
|
function Key () {
|
|
this._active = false;
|
|
this._activityUpdateStatus = false;
|
|
this._activityUpdateNeeded = false;
|
|
this._keyDownFunction = null;
|
|
this._keyUpFunction = null;
|
|
}
|
|
|
|
Key.prototype.setActivityUpdateStatus = function (active) {
|
|
this._activityUpdateStatus = active;
|
|
}
|
|
|
|
Key.prototype.getActivityUpdateStatus = function () {
|
|
return this._activityUpdateStatus;
|
|
}
|
|
|
|
Key.prototype.setActivityUpdateNeeded = function (need) {
|
|
this._activityUpdateNeeded = need;
|
|
}
|
|
|
|
Key.prototype.getActivityUpdateNeeded = function () {
|
|
return this._activityUpdateNeeded;
|
|
}
|
|
|
|
Key.prototype.setActive = function (active) {
|
|
this._active = active;
|
|
}
|
|
|
|
Key.prototype.getActive = function () {
|
|
return this._active;
|
|
}
|
|
|
|
Key.prototype.setKeyDownFunction = function (f) {
|
|
this._keyDownFunction = f;
|
|
}
|
|
|
|
Key.prototype.getKeyDownFunction = function () {
|
|
return this._keyDownFunction;
|
|
}
|
|
|
|
Key.prototype.setKeyUpFunction = function (f) {
|
|
this._keyUpFunction = f;
|
|
}
|
|
|
|
Key.prototype.getKeyUpFunction = function () {
|
|
return this._keyUpFunction;
|
|
}
|
|
|
|
return Key;
|
|
}); |