Wiimote d-pad works in Javascript or Flash games!

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

Source

mickeydelorenzo@yahoo.com'

About the author:

Mickey – who has written posts on NintendoFuse.


  • Pingback: joshbuhler.com

  • diegolt

    It would be great to use vNes!!

  • diegolt

    It would be great to use vNes!!

  • diegolt

    It would be great to use vNes!!

  • http://www.audiotheory.co.uk/ audiotheory

    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

  • http://www.audiotheory.co.uk/ audiotheory

    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

  • http://www.audiotheory.co.uk/ audiotheory

    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

  • http://www.audiotheory.co.uk audiotheory

    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

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • http://www.laflash.org/ Chris Charlton

    Nice, thanks for pokin’. :)

  • http://www.laflash.org/ Chris Charlton

    Nice, thanks for pokin’. :)

  • http://www.laflash.org Chris Charlton

    Nice, thanks for pokin’. :)

  • Pingback: OkWii.com » Blog Archive » Wiimote d-pad works in Javascript or Flash games!

  • Pingback: Nintendo Wii’s “D-Pad” works in Flash/Javascript games! « Game Nation - Video Game News!

  • Pingback: ajax everywhere » Blog Archive » Wiimote keypad mapping

  • Nox

    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/

  • Nox

    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/

  • Nox

    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/

  • Nox

    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/

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • hey_suburbia

    @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.

  • Davidofff

    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.

  • Davidofff

    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.

  • Davidofff

    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.

  • Davidofff

    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());
    }

  • Davidofff

    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());
    }

  • Pingback: BrokenBlog » Blog Archive » Wii Flash: The d-pad and buttons work!

  • Nox

    @hey_suburbia
    Damn, sorry, I somehow missed the d-pad part.
    (I promise, I will get glasses soon :P)

    Anyway, hope it works or that the guys at Opera puts in full support for it!

  • Nox

    @hey_suburbia
    Damn, sorry, I somehow missed the d-pad part.
    (I promise, I will get glasses soon :P)

    Anyway, hope it works or that the guys at Opera puts in full support for it!

  • Nox

    @hey_suburbia
    Damn, sorry, I somehow missed the d-pad part.
    (I promise, I will get glasses soon :P)

    Anyway, hope it works or that the guys at Opera puts in full support for it!

  • Nox

    @hey_suburbia
    Damn, sorry, I somehow missed the d-pad part.
    (I promise, I will get glasses soon :P)

    Anyway, hope it works or that the guys at Opera puts in full support for it!

  • Pingback: Using the Wiimote in Flash at Aral Balkan

  • http://aralbalkan.com/ Aral Balkan

    In addition to the trackback, above, please note that the key codes above contain two typos:

    A is 13 and 2 is 173.

  • http://aralbalkan.com Aral Balkan

    In addition to the trackback, above, please note that the key codes above contain two typos:

    A is 13 and 2 is 173.

  • http://teamxlink.co.uk/ prestige

    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

  • http://teamxlink.co.uk/ prestige

    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

  • http://teamxlink.co.uk/ prestige

    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

  • http://teamxlink.co.uk prestige

    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

  • dr

    wow, it works! but will we be able to use the 1 and 2 buttons for anything except favorites and super-zoomed-in mode?

  • dr

    wow, it works! but will we be able to use the 1 and 2 buttons for anything except favorites and super-zoomed-in mode?

  • Pingback: Link With Reality Web Log » links for 2006-12-28

  • http://www.quasimondo.com/ Mario Klingemann

    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

  • http://www.quasimondo.com Mario Klingemann

    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

  • Pingback: .::{WiiNintendo.net}::.

  • makaveliankode

    I wonder if the same methods can somehow be applied to the nunchuck

  • makaveliankode

    I wonder if the same methods can somehow be applied to the nunchuck

  • makaveliankode

    I wonder if the same methods can somehow be applied to the nunchuck

  • Pingback: Pro Game News » Homestar Runner games make Wii’s HEAD A SPLODE

  • Pingback: Online Gaming Guide » Blog Archive » NYC: Wanna play BioShock and get paid for it?

  • Pingback: Random Clap » Blog Archive » wii&flash ma quanto ce n’è?

  • Pingback: 注目!大泡泡! » Blog Archive » wiiremote ascii.

  • Pingback: flash platform! {desktop, mobile, touch screen…}

  • Pingback: blog aggregatore programmazione flash » Blog Archive » Other links for Wii and Flash

  • Pingback: Gaming News » Wiimote d-pad works in Javascript or Flash games!

  • http://www.jw.wsccu.edu.za/ ivapaq

    Hi My Name Is ivawyx.

  • http://www.jw.wsccu.edu.za ivapaq

    Hi My Name Is ivawyx.

  • http://yahoo.com/ Bill Compton

    Hi Jim. Photos i received. Thanks

  • http://yahoo.com/ Bill Compton

    Hi Jim. Photos i received. Thanks

  • http://yahoo.com Bill Compton

    Hi Jim. Photos i received. Thanks

  • Pingback: Hackszine.com

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com/ kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • http://kfxaaowvnp.com kfxaaowvnp

    Hello! Good Site! Thanks you! rscdxpajfdm

  • Bob

    Javascript? Does this mean we can play Runescape? >_>

  • Bob

    Javascript? Does this mean we can play Runescape? >_>

  • Pingback: Jeff McNeill » Blog Archive » links for 2007-07-15

  • http://search5top.com/clifford-car-alarm ttre

    Thanks a bunch!o

  • http://search5top.com/clifford-car-alarm ttre

    Thanks a bunch!o

  • http://flangeless.cn/viper-alarm-system cheng

    wow nice!/

  • http://flangeless.cn/viper-alarm-system cheng

    wow nice!/

  • http://flangeless.cn/viper-alarm-system cheng

    wow nice!/

  • Pingback: Top Gaming News » Wiimote d-pad works in Javascript or Flash games!

  • http://www.absolutelyfreepsychicreadings.com/ Free Psychic Readings

    wiimote rocks, that’s for sure

  • http://www.absolutelyfreepsychicreadings.com/ Free Psychic Readings

    wiimote rocks, that’s for sure

  • http://www.absolutelyfreepsychicreadings.com Free Psychic Readings

    wiimote rocks, that’s for sure

  • http://blogs.grab.com/dimiko prescription phentermine shipp

    no phentermine still prescription no prescription phentermine us

  • http://blogs.grab.com/dimiko prescription phentermine shipp

    no phentermine still prescription no prescription phentermine us

  • http://blogs.grab.com/dimiko prescription phentermine shipp

    no phentermine still prescription no prescription phentermine us

  • http://blogs.grab.com/dimiko prescription phentermine shipped no

    no phentermine still prescription no prescription phentermine us

  • X(

    how the heak did you get javascript to work on the wii internet?????

  • X(

    how the heak did you get javascript to work on the wii internet?????

  • X(

    how the heak did you get javascript to work on the wii internet?????

  • X(

    how the heak did you get javascript to work on the wii internet?????

  • X(

    how the heak did you get javascript to work on the wii internet?????

  • l

    ye howd u get javascript workin coz ive been trying to get runscape workin and it wont coz its javascript

  • l

    ye howd u get javascript workin coz ive been trying to get runscape workin and it wont coz its javascript

  • l

    ye howd u get javascript workin coz ive been trying to get runscape workin and it wont coz its javascript

  • http://index1.greathal.com/ lol
  • http://index1.greathal.com/ lol
  • http://index1.greathal.com/ lol
  • http://index1.greathal.com/ lol
  • http://index1.greathal.com/ lol
  • http://index1.greathal.com/ lol
  • http://index1.greathal.com lol
  • Pingback: Ephedrine.

  • Pingback: Valium generic.

  • Pingback: Use the Wiimote buttons in your WiiFlash Content - joshbuhler.com

  • http://ospbltgt.com/ Lagwbwvc

    jDx5VN comment1 ,

  • http://ospbltgt.com/ Lagwbwvc

    jDx5VN comment1 ,

  • Pingback: The Everything Forums Blog

  • http://www.freeflash.co.in Flash Tutorial

    Awesome article. we expect similar article from this blog. nice job