UPDATE: Bookmark this page - http://jsa.x10host.com/newTab.php - instead of the actual thing - it does the stuff needed (open in a clean tab) to make it work properly
Also REMOVED the symbols (letters/arrows) on A/B/X/Y buttons and the D-Pad, makes it look clean and modern. Buttons become coloured on-screen when pressed! (actually that was done before) A/B/X/Y match the colours of the buttons on a standard N3DS (which is also the colour of the letters on the buttons on a N3DSXL which is less rainbow-y)
TL;DR: A tech demo for using almost all of the New 3DS's hardware buttons/sticks via the browser.
--Just realized I forgot to add Start and Select. Will update asap.--
So, seeing as I can't get on my computer that much to write C homebrew for the 3DS, I figured I'd make some web-based homebrew instead.
I actually wrote all 300 lines of code with the New 3DS browser as my family tend occupy the laptop a lot. (That's why HomebreWWW/Koopa Cruiser development is slow, guys!)
Basically, what this is is a HTML5/JavaScript web app which, when opened, shows you what buttons you may be pressing (including Circle Pad/C-Stick position) using the HTML5 Gamepad API. (nb, not related to the Wii U gamepad though I believe the Wii U supports that API too).
The code's a bit of a mess (what did you expect, it being written entirely with the New 3DS) but it works.
I hope to clean this up a bit in future and release a framework/library for making web-based games for the New 3DS, once I've got Koopa Cruiser/HomebreWWW in a usable state.
This supports reading the states of all the buttons on the New 3DS barring the HOME button. Please note that ZL and ZR are practically unusable (they change the tab) and B cannot be held down for more than 500ms (half a second) without the tab being closed (it's the shortcut to close the tab). Though popping up a JavaScript alert stops the tab closing, "hold B" is not usable. L and R are usable providing the page is opened via the "Open in New Tab" option when you tap and hold on a link. This is because if there are items in the tab's history it will go back and forward, therefore it needs to be programmatically opened in a tab, or via the context menu (for lack of a better word). I will make a small poster page to do this automatically.
Also, Start and Select are mapped to the browser menu and bookmarks/history respectively, so are unusable.
All other buttons are usable: D-pad, Circle Pad, C-Stick, A, B (partial), X and Y.
Also, though I haven't yet implemented it, you can read the touch screen position, a really simple thing to do if you spend 10 minutes with Google.
Please note this is only for the New Nintendo 3DS browser and consequently will NOT work with older DS and 3DSes, though it may work with the Wii U and possibly a game controller connected to a PC.
http://jsa.x10host.com/n3ds_gamepad.html (tap and hold then select "Open in New Tab")
Also REMOVED the symbols (letters/arrows) on A/B/X/Y buttons and the D-Pad, makes it look clean and modern. Buttons become coloured on-screen when pressed! (actually that was done before) A/B/X/Y match the colours of the buttons on a standard N3DS (which is also the colour of the letters on the buttons on a N3DSXL which is less rainbow-y)
TL;DR: A tech demo for using almost all of the New 3DS's hardware buttons/sticks via the browser.
--Just realized I forgot to add Start and Select. Will update asap.--
So, seeing as I can't get on my computer that much to write C homebrew for the 3DS, I figured I'd make some web-based homebrew instead.
I actually wrote all 300 lines of code with the New 3DS browser as my family tend occupy the laptop a lot. (That's why HomebreWWW/Koopa Cruiser development is slow, guys!)
Basically, what this is is a HTML5/JavaScript web app which, when opened, shows you what buttons you may be pressing (including Circle Pad/C-Stick position) using the HTML5 Gamepad API. (nb, not related to the Wii U gamepad though I believe the Wii U supports that API too).
The code's a bit of a mess (what did you expect, it being written entirely with the New 3DS) but it works.
I hope to clean this up a bit in future and release a framework/library for making web-based games for the New 3DS, once I've got Koopa Cruiser/HomebreWWW in a usable state.
This supports reading the states of all the buttons on the New 3DS barring the HOME button. Please note that ZL and ZR are practically unusable (they change the tab) and B cannot be held down for more than 500ms (half a second) without the tab being closed (it's the shortcut to close the tab). Though popping up a JavaScript alert stops the tab closing, "hold B" is not usable. L and R are usable providing the page is opened via the "Open in New Tab" option when you tap and hold on a link. This is because if there are items in the tab's history it will go back and forward, therefore it needs to be programmatically opened in a tab, or via the context menu (for lack of a better word). I will make a small poster page to do this automatically.
Also, Start and Select are mapped to the browser menu and bookmarks/history respectively, so are unusable.
All other buttons are usable: D-pad, Circle Pad, C-Stick, A, B (partial), X and Y.
Also, though I haven't yet implemented it, you can read the touch screen position, a really simple thing to do if you spend 10 minutes with Google.
Please note this is only for the New Nintendo 3DS browser and consequently will NOT work with older DS and 3DSes, though it may work with the Wii U and possibly a game controller connected to a PC.
http://jsa.x10host.com/n3ds_gamepad.html (tap and hold then select "Open in New Tab")
Last edited by jsa,