WiiMote programming: configuring buttons/gestures to actions

Discussion in 'Mac Programming' started by mark2288, Dec 26, 2008.

  1. mark2288 macrumors regular

    Jan 11, 2006
    Forgive me if this is not the exactly right place to ask about WiiMote programming, but I've been doing some searching and haven't had much luck finding something great yet so I'd figure I ask around here.

    I want to write some code that reads input from a WiiMote and based on gestures/buttons pressed certain actions are taken. Basically, programming the buttons/gestures to commands/shortcuts in a particular program (i.e. use the arrows on the D-pad on the WiiMote to function like arrows on a keyboard in Word or something).

    Does anyone know how I would go about doing this? I know there are some open-source libs for the WiiMote in C, but don't know where to go with regards to programming how the signals from the WiiMote are interpreted.

    Thanks in advance for any advice!
  2. waw74 macrumors 68030

    May 27, 2008

    It's been done, and fairly well. You can make custom actions for any application.

    you can assign all keys but the power key, and each one gets different actions for long and short presses.
    you can also use it as a mouse if you have a sensor bar. I made my own out of 2 LEDs that are plugged into a USB port.

    currently no motion/acceleration sensing though.

    and it has an onscreen menu for navigating files, and your iTunes library and such. and a web page that is designed for the iPhone & iTouch.

    it also works with the standard apple remote.

Share This Page