Open DinoMah opened 3 years ago
I discovered something. Removing the type="module" from the import line
<script type="module" src="./src/index.js"><script/>
Keys now work but I'm unable to import modules from other javascript files.
The only workaround that I found is importing scripts from html and then using them in the html script section
Same problem here. Could you give some more details on your solution? Thanks!
Oh, so much time since I did that tutorial, but what simply means is that in the script tag you have to delete the type='module' option but you can't use other scripts, I recommend using a framework because they use webpack and you don't have problems with importing modules, other option is copy-pasting all the code on index.js but I don't recommend it
Doing this project manually I found that softkeys and D-Pad doesn't respond to the actions on a physical device.