BrowserHack icon indicating copy to clipboard operation
BrowserHack copied to clipboard

Suggestion: package as open web app

Open freddyb opened this issue 10 years ago • 3 comments

First of all, this is a really well done port. Thanks you for doing this.

I want to suggest packaging this as an open web app. This would enable BrowserHack to run in Android (as a Cordova/Phonegap app) and Firefox OS.

To work in these runtimes, BrowserHack would need to show a softkeyboard or focus a hidden element to use the system's softkeyboard.

I'd be happy to work on this, if you can guide on which files to touch :-)

freddyb avatar Apr 13 '15 07:04 freddyb

A few places you might want to investigate web/index.html, in preRun you can inject your init functions win/web/nethack_lib.js is the logic for the whole UI, especially input events are handled with buffer, for the C code to read from.

If you modified nethack_lib.js, you should rebuild the project.

coolwanglu avatar Apr 13 '15 08:04 coolwanglu

Thanks. I am right to assume that you put your code in web/ also under nethack public license (dat/license)?

freddyb avatar Apr 13 '15 09:04 freddyb

Yes, as nethack was originally distributed under Nethack GPL.

coolwanglu avatar Apr 13 '15 09:04 coolwanglu