Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you add mobile controls support? #369

Open
chexo3 opened this issue Jul 8, 2022 · 1 comment
Open

Could you add mobile controls support? #369

chexo3 opened this issue Jul 8, 2022 · 1 comment

Comments

@chexo3
Copy link

chexo3 commented Jul 8, 2022

While I can sideload an emulator to my phone, that requires a bit more work than just loading JSNES.

On my device (iPhone 7 Plus, iOS 14.5.1, Mobile Safari) JSNES seems to run fine, but I can’t actually play the games because of the lack of a keyboard to control it with.

It’d be nice to have on screen controls available for mobile devices, as well as a file picker that doesn’t use drag and drop, so that I can load my own ROMs

@ds17f
Copy link

ds17f commented Aug 21, 2022

I've got a working POC of this: https://github.com/ds17f/jsnes-web/tree/add-touch-controller

The code is POC code, so I'm not ready to PR it against this project. What I'd really like to do is package up the react component for the controller and npm install it in this project and then wire it up. I also need to make the touch controls "better". They're too fine, and they need to have bigger touch points to activate the functionality.

I've got some work to do, but it is usable for a basic game, and multitouch works so you can press A and B at the same time (for example).

You can see it in action here: https://ds17f.github.io/FamicomPartyHelloWorld/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants