Thread: Wiimote + C

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    127

    Wiimote + C

    I was wondering if anybody knew of a way to use a wiimote on a computer using C? Is there an sdk somewhere that I can't find? Just thought this would be really fun to mess around with.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Some of the cooler projects I've seen....

    http://www.cs.cmu.edu/~johnny/projects/wii/

    gg

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    The SDL supports the Wiimote, I'm pretty sure. It might not be worth using unless you're familiar with the SDL, but if you are . . . .

    Here's someone else's implementation for the SDL. http://digitalretrograde.com/projects/wiim/
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    I couldn't find it in the sdl doc. Any links? I can't find it in google for my life.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Actually, it seems like you need to use a library called wiiuse. http://www.wiiuse.net/?nav=api
    SDL example using wiiuse (not sure how good it is): https://forge.openinterface.org/plug...ev=1&pathrev=1
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    So it's not a part of sdl?

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    No, unfortunately. Not built-in. Not that it has much to do with it, but they like to keep the SDL itself small. It even only supports BMP images, delegating PNG and so on to SDL_image.)
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Registered User
    Join Date
    Jun 2008
    Posts
    266
    I wouldn't exactly call that an unfortunate thing. Wii and sdl are completly unrelated and I'm glad they are in seperate libraries.

Popular pages Recent additions subscribe to a feed