PDA
$threadinfo[title]
-


Funto
April 8th, 2009, 14:51
Hi all,

I am currently working on an input plugin for Mupen64Plus based on the
libwiimote ( http://libwiimote.sourceforge.net ), which only exists
for Linux.
I made it to be able to play Super Mario 64 with the wiimote, but
there are not enough buttons on the wiimote/nunchuk for mapping all
N64 pad's buttons, so I still need to make something for allowing the
user to manually map the N4 pad's buttons to the wiimote/nunchuk
controls.
I still haven't added the "rumble" functionality yet, nor did I make
the code for handling multiple wiimotes and for using another wiimote
than mine ^^

That is to say, I still have work to do, but I would like to share my
work and integrate this to the Mupen64Plus source code repository.
How would this be possible ?

Thanks for your answers.

Pyromanik
April 8th, 2009, 23:59
Talk to Richard42 about it. He'll set you up with an SVN account, with a branch for you to work in.
You can email him directly, I believe his contact details are on the google projects (http://code.google.com/p/mupen64plus/) page.

Funto
April 9th, 2009, 12:13
Ok thanks, I will do that.

Tillmann
April 9th, 2009, 16:54
a wiimote plugin it's a very nice thing to have, you've definably kept my interest on it :D

If you permit a question, I would like to know if you plan to add classic controller support :D

Congrats for the initiative :D

Miretank
April 9th, 2009, 19:31
indeed, congrats and good luck :)

Funto
April 10th, 2009, 02:51
Thank you for your support :)

As for classic controller support, why not, but as for the moment I do not own any one so I can't develop that ^^ Furthermore there is still work to do with wiimote/nunchuk...

And Richard42 still hasn't answered my e-mail :(

Funto
April 10th, 2009, 22:30
Got an answer from Richard, I will have my own branch on the SVN repository :)

Tillmann
April 11th, 2009, 17:51
Got an answer from Richard, I will have my own branch on the SVN repository :)

Congrats!
Ok, thanks for your answers, good luck with the plugin i will be watching over it :D :linux:

Funto
April 12th, 2009, 22:53
For the impatients, I just commited a first "playable" version of my plugin :)
To compile, you need GTK+ development libraries, and you must type "make" in the wiinput64 directory.

I actually just tested it with Mario64 and do not know if the mapping is ok for other games.
As for the moment, only 1 wiimote is usable, and we must configure its bluetooth address in the configuration dialog of the input plugin (I will add detection later). You can get your wiimote's address with "lswm" (from the CWiid project).

Enjoy !

Slougi
April 13th, 2009, 17:58
Hi,

if the gtk+ bits are well separated I'd like to write a Qt interface. =) Do you think the gtk ui will change a lot still?

Funto
April 13th, 2009, 21:54
Yeah cool :)

The GTK+ UI is not finalized at all, currently it's really a hack, as we need to manually enter the wiimotes' bluetooth addresses we get with "lswm". I would like to add a "discover" button or something like this.

If you want, you can start a Qt GUI but my GTK interface may change ^^

As for the separation, the GUI is implemented in a separated .c file (gui_gtk.c), and there is also a console interface, so adding gui_qt.c would be ok.

Also, I am not really at ease with Mupen64Plus Makefiles system (I am used to using SCons...), so I need help with it. Currently, I do not use $GTK_LIBS for example (I directly call pkg-config), and my plugin is not integrated with mupen64plus's system (i.e. typing "make" in the root directory does not compile wiinput64).
Furthermore, I do not manage to make "ifeq($GUI,GTK2)" work...

Need some help on this side ^^

Pyromanik
April 13th, 2009, 23:33
Copy (and edit) the relevant bits from other makefiles, you'll get the hang of it soon enough.
It's what I did :P

Sounds like a great project!
Good Luck :D

Funto
April 14th, 2009, 03:04
Thanks Pyromanik :)

I finally got my way through the Makefiles so now, you can just compile normally from the source tree, and drive Mario with your nunchuk ^^

Pyromanik
April 14th, 2009, 04:03
That'd be most awesome... if I had a nunchuck and a bluetooth dongle... :P
This looks promising, hope you keep at it!