Wiimote d-pad works in Javascript or Flash games! December 27, 2006

The browser’s native resolution appears to be 800×500 (SuperVGA minus 100 pixels for the menu bar) at 4:3 and 1024×500 at 16:9 but there is also the “Opera for handheld” mode if you hit 2 (similar to the F11 functionality in the desktop version) which strangely doesn’t report itself as “handheld” unlike the desktop version; maybe the Opera developers could shed some light into this and tell us how to handle this nice feature? Anyway, you can also zoom (×2) a page if you think the fonts are too small to read. Yet again, if you own a small television that might still be not enough.
Javascript support is also excellent, everything runs smoothly and it has no problems at all with libraries such as jQuery4 (even Thickbox5 works; you can’t exit it, but that should be fairly easy to fix).What’s more exciting though is that it is possible to use the Wiimote’s keys in Javascript or Flash games! Here follows a key -> unicode table of the Wii Remote’s keys. Have in mind that some of those keys are reserved though.
↑ 175
↓ 176
→ 177
� 178
A 13
B 171
- 170
+ 174
1 172
2 173
Thanks Arty2
Discuss this and more in our forums.
Follow WiiNintendo on Twitter.
Subscribe to our RSS Feed.






















December 27th, 2006 at 1:10 pm
[...] Via: wiinintendo.net Trackback URL [...]
December 27th, 2006 at 10:50 pm
It would be great to use vNes!!
December 28th, 2006 at 9:36 am
Where exactly did you get this information? I’ve just created a test movie that show’s when a key up/down event is triggered and its keycode. None of the buttons trigger key events in Flash.
Also from what I’ve seen they don’t in JS either.
:theory
December 28th, 2006 at 11:08 am
@audiotheory
This was a tip sent in by one of my readers, the source is here:
http://www.legendarypokemon.net/2006/12/22/English/the-wii-browser-has-arrived
If enough people mark this as inaccurate, I will mark it accordingly.
December 28th, 2006 at 11:22 am
Nice, thanks for pokin’.
December 28th, 2006 at 11:28 am
[...] ↑ 175 ↓ 176 → 177 â†? 178 A 170 B 171 – 170 + 174 1 172 2 17read more | digg story Filed under Incoming having Leave a Comment [...]
December 28th, 2006 at 11:52 am
[...] The guys over at WiiNintendo.net have posted a pretty cool find about the Wii and it’s online capabilities. They have found that the D-Pad on the Wii-mote does actually work in flash and javascript programs. This is actually a pretty big find, because most people thought that you could only play games that used only a mouse (pointer). They have released the unicode “codes” for the different directions in hope that some snazzy users out there could create some cool online apps for the Wii. Here are the codes (in Unicode): [...]
December 28th, 2006 at 12:05 pm
[...] http://wiinintendo.net/2006/12/27/wiimote-d-pad-works-in-javascript-or-flash-games/ December 29th, 2006 at 3:05 am [...]
December 28th, 2006 at 12:10 pm
ABS has had a special section up for Wii compatible flash games since 12 December, so this should be correct.
http://www.albinoblacksheep.com/games/wii/
December 28th, 2006 at 1:35 pm
@Nox
Flash games work fine, WiiNintendo even has had a Wii Flash site set up since October, http://www.WiiFii.net
The question is does the D-Pad work? As of right now only “mouse-only” games work. This article may shed some light on HOW to get the D-Pad to work.
December 28th, 2006 at 1:41 pm
This also works with Yahoo User Interface (or YUI).
var kl2 = new YAHOO.util.KeyListener(document, { keys:[74,175,170,171,172,174,176] },
{ fn:this.kp,
scope:this,
correctScope:true } );
kl2.enable();
The above code would pick up some of the wiimote presses, and the letter J.
December 28th, 2006 at 1:45 pm
Sorry, I forgot to say I used that within an object literal. To get going straight away use
var kl2 = new YAHOO.util.KeyListener(document, { keys:[74,175,170,171,172,174,176] },
{ fn:doKP
} );
kl2.enable();
doKP = function(e){
alert(e.toString());
}
December 28th, 2006 at 1:56 pm
[...] Yes! Score one for the good guys. The buttons on the wiimote apparently gives out key events in Javascript, so it likely does the same for Flash. Read more on it here. Posted in Actionscript / Flash, Gaming, Programming | [...]
December 28th, 2006 at 2:28 pm
@hey_suburbia
)
Damn, sorry, I somehow missed the d-pad part.
(I promise, I will get glasses soon
Anyway, hope it works or that the guys at Opera puts in full support for it!
December 28th, 2006 at 3:08 pm
[...] WiiNintendo.net has posted a list of key codes that the various buttons on the Wiimote generate, stating that they work in Flash and JavaScript. Well, that’s half accurate: They do work in JavaScript but not in Flash. Adding a Key listener in Flash doesn’t register anything when the buttons on the Wiimote are pressed. [...]
December 28th, 2006 at 3:16 pm
In addition to the trackback, above, please note that the key codes above contain two typos:
A is 13 and 2 is 173.
December 28th, 2006 at 11:35 pm
Excellent find! I’ve knocked together a little proof of concept if anyone is interested point your Wii browser to http://wii.teamxlink.co.uk.
Since ajax request calls are supported it should be fairly simple to throw together some multi-user games… The 2D OOT project seems like a nice candidate.
-prestige
December 29th, 2006 at 4:19 am
wow, it works! but will we be able to use the 1 and 2 buttons for anything except favorites and super-zoomed-in mode?
December 29th, 2006 at 1:27 pm
[...] Wiimote d-pad works in Javascript or Flash games Codes for the different buttons on the Wiimote, for use in JavaScript or flash. (tags: design wii) [...]
January 1st, 2007 at 10:04 am
Here’s a demo how to make the Wiimote keys also available to Flash: http://www.quasimondo.com/flashwiimote.php
For an explanation and source code check this link: http://www.quasimondo.com/archives/000638.php
January 2nd, 2007 at 8:23 am
[...] As we reported last week, Arty2 got the Wiimote’s D-pad working in the Wii Opera browser using Javascript and Flash. Javascript worked great, but there were reports that the Flash input was buggy at best. [...]
January 4th, 2007 at 5:33 am
I wonder if the same methods can somehow be applied to the nunchuck
January 29th, 2007 at 4:30 pm
[...] Basically, the Wii versions of these games just use the Wii remote to replace the computer mouse, or use the pointer to control a character rather than the keyboard directions. While these adapted games play well enough, they wouldn’t even be necessary if Nintendo would open up the Wii remote D-pad for simple directional input on Flash animations (apparently hackers are working on just this problem). [...]
February 23rd, 2007 at 12:54 pm
[...] Basically, the Wii versions of these games just use the Wii remote to replace the computer mouse, or use the pointer to control a character rather than the keyboard directions. While these adapted games play well enough, they wouldn’t even be necessary if Nintendo would open up the Wii remote D-pad for simple directional input on Flash animations (apparently hackers are working on just this problem). [...]
March 2nd, 2007 at 8:06 am
[...] allora rigaaa…. qua c’è troppa roba sulla connessione tra wii e flash. ecco ancora un altro sito : http://wiinintendo.net/2006/12/27/wiimote-d-pad-works-in-javascript-or-flash-games/ [...]
March 6th, 2007 at 1:08 pm
[...] http://wiinintendo.net/2006/12/27/wiimote-d-pad-works-in-javascript-or-flash-games/ [...]
March 22nd, 2007 at 2:30 am
[...] . wiiplayable.com . aral balkan 1 . aral balkan 2 . wiihacks . wiiNintendo [...]
April 18th, 2007 at 12:29 am
[...] fwiidom.org . wiiplayable.com . aral balkan 1 . aral balkan 2 . wiihacks . wiiNintendo . [...]
April 19th, 2007 at 1:17 am
[...] 175 ↓ 176 → 177 â†? 178 A 170 B 171 – 170 + 174 1 172 2 17read more | digg [...]
May 12th, 2007 at 10:02 pm
Hi My Name Is ivawyx.
June 4th, 2007 at 5:20 pm
Hi Jim. Photos i received. Thanks
June 20th, 2007 at 10:42 pm
HOWTO use the Wiimote buttons in Flash…
A while back, WiiNintendo posted the keycodes that are detectable by Javascript when the Wii’s buttons are pressed. With this ability, you can create Javascript games that will play on your Wii. Unfortunately, even though the Wii browser ships……
June 20th, 2007 at 11:06 pm
Hello! Good Site! Thanks you! rscdxpajfdm
July 14th, 2007 at 11:08 pm
Javascript? Does this mean we can play Runescape? >_>
July 15th, 2007 at 8:30 am
[...] Wiimote d-pad works in Javascript or Flash Games (wiintendo.net) (tags: flash wii hacks) [...]
August 28th, 2007 at 6:37 pm
Thanks a bunch!o
September 19th, 2007 at 12:30 am
wow nice!/
November 18th, 2007 at 8:24 am
[...] read more | digg story [...]
December 2nd, 2007 at 3:02 pm
wiimote rocks, that’s for sure
December 3rd, 2007 at 5:34 pm
no phentermine still prescription no prescription phentermine us
December 23rd, 2007 at 10:55 am
how the heak did you get javascript to work on the wii internet?????
January 27th, 2008 at 7:09 pm
ye howd u get javascript workin coz ive been trying to get runscape workin and it wont coz its javascript
February 2nd, 2008 at 3:27 am
pre teen pageant gown
June 10th, 2008 at 12:13 am
Ephedrine….
Ephedrine….
December 13th, 2008 at 3:31 am
Valium….
Vicoden valium. Diazepam t quil valrelease valium data sheet. Valium….
January 20th, 2009 at 9:31 pm
[...] wiinintendo.net :Flash No comments for this entry [...]
May 8th, 2009 at 4:05 am
jDx5VN comment1 ,