Forums > Dev

Wii Remote object for PC

January 11, 2007 | 2:47 pm

Hi

I’m trying to compile this object (aka.wiiremote 1.0B4 for Nintendo Wii Remote.) from the sourcecode in this site:

http://www.iamas.ac.jp/~aka/max/#aka_wiiremote

Many tryes and no object compiled!!!

I can’t compile the object for PC!

Can some one share the object for PC?

Thanks for your time!


January 11, 2007 | 2:57 pm

hello,
i think it’s not as easy as a quick recompile of the exisiting code
to port to external to PC.

in wiiremote.c the code adresses an OS X specific Framework for
Bluetooth Communication.
You’d have to rewrite that part at least to use the windows equivalents.

If you find some sourcecode that implements this on windows you might
be able to rewrite that part for your platform.

Good Luck!

/*j

> I’m trying to compile this object (aka.wiiremote 1.0B4 for
> Nintendo Wii Remote.) from the sourcecode in this site:
> http://www.iamas.ac.jp/~aka/max/#aka_wiiremote
> Many tryes and no object compiled!!!
> I can’t compile the object for PC!
> Can some one share the object for PC?


January 11, 2007 | 3:25 pm

and if you will do this work it sholud be worth do do like this first
http://mike.verdone.ca/wiitomidi/
so, your work would be usefull for a lot of people. I mean everyone
who uses a MIDI compatible software or hardware in windows. ;)

cheers
j.jR.

On 1/11/07, jasch wrote:
> hello,
> i think it’s not as easy as a quick recompile of the exisiting code
> to port to external to PC.
>
> in wiiremote.c the code adresses an OS X specific Framework for
> Bluetooth Communication.
> You’d have to rewrite that part at least to use the windows equivalents.
>
> If you find some sourcecode that implements this on windows you might
> be able to rewrite that part for your platform.
>
> Good Luck!
>
> /*j
>
> > I’m trying to compile this object (aka.wiiremote 1.0B4 for
> > Nintendo Wii Remote.) from the sourcecode in this site:
> > http://www.iamas.ac.jp/~aka/max/#aka_wiiremote
> > Many tryes and no object compiled!!!
> > I can’t compile the object for PC!
> > Can some one share the object for PC?
>
>


January 11, 2007 | 4:08 pm

You would probably need to write a bit of code that
enumerates all bluetooth devices. You could then query
for the Wii remote and then open a connection to it.
You could then pass the data back to Max. I am pretty
sure Microsoft provides an api that allows you to do that,
it should be part of Windows Embedded Source Tools.

A much easier way to get data from the Wii remote is
to use GlovePIE, http://carl.kenner.googlepages.com/glovepie
It allows you to map controller data to MIDI messages.
You can then route those messages to something like
MIDI yoke, and pick it up in Max. Not as convenient as
a native max external but it works.

Anthony

—– Original Message —–
From: jasch
Date: Thursday, January 11, 2007 8:59 am
Subject: Re: [dev] Wii Remote object for PC

> hello,
> i think it’s not as easy as a quick recompile of the exisiting
> code
> to port to external to PC.
>
> in wiiremote.c the code adresses an OS X specific Framework for
> Bluetooth Communication.
> You’d have to rewrite that part at least to use the windows
> equivalents.
> If you find some sourcecode that implements this on windows you
> might
> be able to rewrite that part for your platform.
>
> Good Luck!
>
> /*j
>
> > I’m trying to compile this object (aka.wiiremote 1.0B4 for
> > Nintendo Wii Remote.) from the sourcecode in this site:
> > http://www.iamas.ac.jp/~aka/max/#aka_wiiremote
> > Many tryes and no object compiled!!!
> > I can’t compile the object for PC!
> > Can some one share the object for PC?
>
>


January 12, 2007 | 4:49 pm

By the way, can you send a link to the wiiremote
source. It would be nice to look at it as well.

Anthony

—– Original Message —–
From: apalomba@austin.rr.com
Date: Thursday, January 11, 2007 10:11 am
Subject: Re: [dev] Wii Remote object for PC

> You would probably need to write a bit of code that
> enumerates all bluetooth devices. You could then query
> for the Wii remote and then open a connection to it.
> You could then pass the data back to Max. I am pretty
> sure Microsoft provides an api that allows you to do that,
> it should be part of Windows Embedded Source Tools.
>
> A much easier way to get data from the Wii remote is
> to use GlovePIE, http://carl.kenner.googlepages.com/glovepie
> It allows you to map controller data to MIDI messages.
> You can then route those messages to something like
> MIDI yoke, and pick it up in Max. Not as convenient as
> a native max external but it works.
>
>
> Anthony
>
>
>
>
>
>
>
> —– Original Message —–
> From: jasch
> Date: Thursday, January 11, 2007 8:59 am
> Subject: Re: [dev] Wii Remote object for PC
>
> > hello,
> > i think it’s not as easy as a quick recompile of the exisiting
> > code
> > to port to external to PC.
> >
> > in wiiremote.c the code adresses an OS X specific Framework for
> > Bluetooth Communication.
> > You’d have to rewrite that part at least to use the windows
> > equivalents.
> > If you find some sourcecode that implements this on windows you
> > might
> > be able to rewrite that part for your platform.
> >
> > Good Luck!
> >
> > /*j
> >
> > > I’m trying to compile this object (aka.wiiremote 1.0B4 for
> > > Nintendo Wii Remote.) from the sourcecode in this site:
> > > http://www.iamas.ac.jp/~aka/max/#aka_wiiremote
> > > Many tryes and no object compiled!!!
> > > I can’t compile the object for PC!
> > > Can some one share the object for PC?
> >
> >
>


January 12, 2007 | 5:34 pm

Hi

The source code is on this site

http://www.iamas.ac.jp/~aka/max/#aka_wiiremote

this is the irect link… i gess

http://www.iamas.ac.jp/~aka/max/download/aka.wiiremote-b4-src.zip

thanks for your time!


February 11, 2007 | 5:05 am

I was trying to figure this out, as well. I think you need some Windows-compatible framework. Note the C/C++ library here:

http://www.wiili.org/index.php/CWiimote

… in development, but potentially promising. Surely there’s a PC-equivalent framework for BT communications? (Okay, maybe not?) All the PC people I’ve talked to have used Delphi for coding BT connections.


February 13, 2007 | 8:47 pm

glovepie does a good job of interfacing the wii on pc.
other then midi (which i haven’t explored) it can also send the wii output
as a udp stream.
an object would be cool but udp is good enough…

this pi script sends the raw x-axis data. easy. and you can brodcast it on
the network
OSC.Port = 4700
OSC.IP = "localhost"
OSC.rawX = Wiimote.RelAccX

from the pieglove help file-
/////////////////////////////
OSC Stuff
=========

PIE supports Open Sound Control over UDP. That is kind of like MIDI.

You can only pass single variables.

First you need to set the port, the destination IP address, and whether you
want the message broadcast to everything connected to the network.

OSC.Port = 47110
OSC.IP = "192.168.1.2"
OSC.Broadcast = false

Actually if you don’t specify the IP address it defaults to "localhost". If
you
set Broadcast to true then the IP address is ignored, so you don’t need to
specify it. If you don’t specify the port it defaults to 47110. If you don’t
specify broadcast then it defaults to false.

Then you can send OSC messages like this:

OSC.blah.foo.bar = 42.6

That will set the OSC address /blah/foo/bar to the single precision floating
point value 42.6

You can also use the SendOsc(ip, port, address, param1, param2, param3, …)
and the BroadcastOsc(port, address, param1, param2, param3, …)
messages.
/////////////////////////
On 2/11/07, Peter Kirn

wrote:
>
>
> I was trying to figure this out, as well. I think you need some
> Windows-compatible framework. Note the C/C++ library here:
> http://www.wiili.org/index.php/CWiimote
>
> … in development, but potentially promising. Surely there’s a
> PC-equivalent framework for BT communications? (Okay, maybe not?) All the PC
> people I’ve talked to have used Delphi for coding BT connections.
>


February 13, 2007 | 8:47 pm

oops, didn’t see i was in dev-list. continue developing and ignore my
rambling…

On 2/13/07, yair reshef wrote:
>
> glovepie does a good job of interfacing the wii on pc.
> other then midi (which i haven’t explored) it can also send the wii output
> as a udp stream.
> an object would be cool but udp is good enough…
>
> this pi script sends the raw x-axis data. easy. and you can brodcast it on
> the network
> OSC.Port = 4700
> OSC.IP = "localhost"
> OSC.rawX = Wiimote.RelAccX
>
> from the pieglove help file-
> /////////////////////////////
> OSC Stuff
> =========
>
> PIE supports Open Sound Control over UDP. That is kind of like MIDI.
>
> You can only pass single variables.
>
> First you need to set the port, the destination IP address, and whether
> you
> want the message broadcast to everything connected to the network.
>
> OSC.Port = 47110
> OSC.IP = "192.168.1.2"
> OSC.Broadcast = false
>
> Actually if you don’t specify the IP address it defaults to "localhost".
> If you
> set Broadcast to true then the IP address is ignored, so you don’t need to
> specify it. If you don’t specify the port it defaults to 47110. If you
> don’t
> specify broadcast then it defaults to false.
>
> Then you can send OSC messages like this:
>
> OSC.blah.foo.bar = 42.6
>
> That will set the OSC address /blah/foo/bar to the single precision
> floating point value 42.6
>
> You can also use the SendOsc(ip, port, address, param1, param2, param3,
> …)
> and the BroadcastOsc(port, address, param1, param2, param3, …)
> messages.
> /////////////////////////
> On 2/11/07, Peter Kirn

wrote:
> >
> >
> > I was trying to figure this out, as well. I think you need some
> > Windows-compatible framework. Note the C/C++ library here:
> > http://www.wiili.org/index.php/CWiimote
> >
> > … in development, but potentially promising. Surely there’s a
> > PC-equivalent framework for BT communications? (Okay, maybe not?) All the PC
> > people I’ve talked to have used Delphi for coding BT connections.
> >
>
>


April 11, 2014 | 2:40 pm

Thanks for the GlovePie link, I will try it tonight.


Viewing 10 posts - 1 through 10 (of 10 total)