Test the mouse click

This commit is contained in:
Olivier Goffart 2020-08-10 12:54:14 +02:00
parent ccb2e23cf5
commit f4cce26d51
7 changed files with 138 additions and 26 deletions

View file

@ -16,7 +16,10 @@ require.extensions['.60'] =
var c = native.load(filename);
module.exports[c.name()] = function (init_properties) {
let comp = c.create(init_properties);
let ret = { show() { comp.show() } };
let ret = {
show() { comp.show() },
send_mouse_click(x, y) { comp.send_mouse_click(x, y) }
};
c.properties().forEach(x => {
Object.defineProperty(ret, x, {
get() { return comp.get_property(x); },