From c19deebb755d277fd69db05d9182db2ee3adfc60 Mon Sep 17 00:00:00 2001 From: vibedivde Date: Fri, 17 Jul 2020 15:32:32 -0400 Subject: [PATCH] add lock_mouse business this has been my 3rd day doing nothing but analyzing v86 --- docs/api.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api.md b/docs/api.md index 15db7d5d..720909ef 100644 --- a/docs/api.md +++ b/docs/api.md @@ -14,6 +14,7 @@ - [`serial0_send(string data)`](#serial0_sendstring-data) - [`create_file(string file, Uint8Array data, function(Object) callback)`](#create_filestring-file-uint8array-data-functionobject-callback) - [`read_file(string file, function(Object, Uint8Array) callback)`](#read_filestring-file-functionobject-uint8array-callback) +- [`lock_mouse()`](#lock_mouse) *** ## `V86Starter` @@ -114,6 +115,10 @@ Stop emulation. Do nothing if emulator is not running. Can be asynchronous. #### `restart()` Restart (force a reboot). +*** +#### `lock_mouse()` +Locks the mouse to the canvas the emulator was initated with + *** #### `add_listener(string event, function(*) listener)` Add an event listener (the emulator is an event emitter). A list of events