-
Notifications
You must be signed in to change notification settings - Fork 163
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
Refactor customizable key mapping #149
Labels
Comments
bfirsh
added a commit
that referenced
this issue
Jan 16, 2019
This allows embedding just the emulator as a React component by passing ROM data as a string to Emulator. It handles writing to canvas, sound, keyboard events, mouse events, etc etc. Minimal viable emulator: ```javascript <Emulator romData="..." /> ``` Boom. There is still some refactoring to do to clean up keyboard/gamepad customisation. See also #149. Also, to make this work we need to release jsnes-web as a package on npm and document how to embed it.
bfirsh
added a commit
that referenced
this issue
Jan 20, 2019
This allows embedding just the emulator as a React component by passing ROM data as a string to Emulator. It handles writing to canvas, sound, keyboard events, mouse events, etc etc. Minimal viable emulator: ```javascript <Emulator romData="..." /> ``` Boom. There is still some refactoring to do to clean up keyboard/gamepad customisation. See also #149. Also, to make this work we need to release jsnes-web as a package on npm and document how to embed it.
ds17f
added a commit
to ds17f/jsnes-web
that referenced
this issue
Aug 29, 2022
This allows embedding just the emulator as a React component by passing ROM data as a string to Emulator. It handles writing to canvas, sound, keyboard events, mouse events, etc etc. Minimal viable emulator: ```javascript <Emulator romData="..." /> ``` Boom. There is still some refactoring to do to clean up keyboard/gamepad customisation. See also bfirsh#149. Also, to make this work we need to release jsnes-web as a package on npm and document how to embed it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From review in #136:
keyboardController.keys
could be passed toControlsModal
. You could then have asetKey
method onKeyboardController
that was passed all the way down to each row. That way the state management and business logic is all inKeyboardController
.The text was updated successfully, but these errors were encountered: