Skip to content

Commit

Permalink
add lock_mouse business
Browse files Browse the repository at this point in the history
this has been my 3rd day doing nothing but analyzing v86
  • Loading branch information
vibedivde authored and copy committed Jul 17, 2020
1 parent 6ab0fa8 commit c19deeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api.md
Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c19deeb

Please sign in to comment.