add lock_mouse business

this has been my 3rd day doing nothing but analyzing v86
This commit is contained in:
vibedivde 2020-07-17 15:32:32 -04:00 committed by Fabian
parent 6ab0fa85a9
commit c19deebb75

View file

@ -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