Skip to content

Commit

Permalink
publish: 6.22.17
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Feb 18, 2019
1 parent 572ea53 commit 1deed0e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ do this you need define onprogress handler in [DosOptions](http://js-dos.com/6.2
```javascript
Dos(canvas, {
onprogress: (stage, total, loaded) => {
console.log(stage, loaded * 100 / progress + "%");
console.log(stage, loaded * 100 / loaded + "%");
},
}).ready(...);
```
Expand All @@ -158,6 +158,20 @@ override `log` and `onerror` property
}).ready(...);
```

### Mouse locking

By default dosbox mouse will follow browser cursor. However you can change this behaviour by providing `autolock=true` in
dosbox.conf. Then mouse starts follow browser cursor after first click (lock), and you can unlock mouse by pressing `CTRL+F10`.
```javascript
Dos(canvas).ready((fs, main) => {
fs.createFile("dosbox.conf", `
[sdl]
autolock=true
`);
main(["-conf", "dosbox.conf"]);
});
```

## Building

Building process have two steps:
Expand Down
2 changes: 1 addition & 1 deletion dist/docs/api/js-dos-ts/js-dos-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gulpfile.js --> generateBuildInfo
```
export const Build = {
version: "6.22.16 (5de460906afb1ba08e236471aa21c14d8e3e052e)",
version: "6.22.17 (572ea5319d828f0107d26fd24a96c27875e485f9)",
wasmSize: 2167052,
jsSize: 503703,
};
Expand Down
2 changes: 1 addition & 1 deletion js-dos-ts/js-dos-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// gulpfile.js --> generateBuildInfo

export const Build = {
version: "6.22.16 (5de460906afb1ba08e236471aa21c14d8e3e052e)",
version: "6.22.17 (572ea5319d828f0107d26fd24a96c27875e485f9)",
wasmSize: 2167052,
jsSize: 503703,
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-dos",
"version": "6.22.16",
"version": "6.22.17",
"description": "Easiest API to run dos programs in browser",
"main": "js-dos.js",
"repository": {
Expand Down

0 comments on commit 1deed0e

Please sign in to comment.