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