mirror of
https://github.com/danbulant/arcade-machine
synced 2026-07-05 19:10:43 +00:00
Merge branch 'main' of github.com:matFPV/arcade-machine
This commit is contained in:
commit
f407e31e13
1 changed files with 33 additions and 1 deletions
34
README.md
34
README.md
|
|
@ -1 +1,33 @@
|
||||||
not a readme file yet
|
## UI for launching games with Custom built controllers
|
||||||
|
### How to use ?
|
||||||
|
- Add a new variale in **Vars.js** and set it to game exe path
|
||||||
|
- Add new switch switch case in
|
||||||
|
```javascript
|
||||||
|
switch (vers) {
|
||||||
|
case 3:
|
||||||
|
execFile(AsphyxiaPath);
|
||||||
|
execFile(SDVX3Path);
|
||||||
|
//console.log(vers);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
execFile(AsphyxiaPath);
|
||||||
|
execFile(SDVX4Path);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
execFile(AsphyxiaPath);
|
||||||
|
execFile(SDVX5Path);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
execFile(NewVar)
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
```
|
||||||
|
With execFile(your variable)
|
||||||
|
Like this:
|
||||||
|
```javascript
|
||||||
|
case 6:
|
||||||
|
execFile(NewVar)
|
||||||
|
```
|
||||||
|
|
||||||
|
- Add ```<button class="move" type="button" id="sdvx3-button" onclick="vers=3;sdvx()"> ```
|
||||||
|
> set the id to whatever you want and vers to corresponding number in switch case
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue