Merge e7c5ffe5e8 into 0ce93900ae
This commit is contained in:
commit
91128523d9
|
|
@ -438,6 +438,16 @@ that.ungrab = function() {
|
||||||
//Util.Debug(">> Keyboard.ungrab");
|
//Util.Debug(">> Keyboard.ungrab");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
that.set_handler = function(handlers) {
|
||||||
|
if (!handlers)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (var name in handlers) {
|
||||||
|
if (name == 'onKeyPress')
|
||||||
|
conf[name] = handlers[name];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return that; // Return the public API interface
|
return that; // Return the public API interface
|
||||||
|
|
||||||
} // End of Keyboard()
|
} // End of Keyboard()
|
||||||
|
|
@ -614,6 +624,16 @@ that.ungrab = function() {
|
||||||
//Util.Debug(">> Mouse.ungrab");
|
//Util.Debug(">> Mouse.ungrab");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
that.set_handler = function(handlers) {
|
||||||
|
if (!handlers)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (var name in handlers) {
|
||||||
|
if (name == 'onMouseButton' || name == 'onMouseMove')
|
||||||
|
conf[name] = handlers[name];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return that; // Return the public API interface
|
return that; // Return the public API interface
|
||||||
|
|
||||||
} // End of Mouse()
|
} // End of Mouse()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue