blob: d74c8c2e1f60b9d17cadaf006a7111c265677cb9 [file] [log] [blame]
function Mouse() {
};
/*
* Possibly useful for automated testing, this call to PalmSystem triggers a mouse click (i.e. touch event).
* x coordinate & y coordinate of where the screen was touched and also a true/false flag to tell WebOS if it should simulate the mouse click
* @param {Number} x
* @param {Number} y
* @param {Boolean} state
* Example:
* navigator.mouse.simulateMouseClick(10, 10, true);
*/
Mouse.prototype.simulateMouseClick = function(x, y, state) {
PalmSystem.simulateMouseClick(x, y, state || true);
};
if (typeof navigator.mouse == "undefined") navigator.mouse = new Mouse();