Welcome! Log In Create A New Profile Wiibrew Wiki HackMii Blog

Advanced

Wiimote in Dolphin (emulator)

Posted by blitter 
Wiimote in Dolphin (emulator)
February 18, 2009 06:00PM
Hi all, my first post. I'm really enjoying coding on the Wii, previously I would play around with OpenGL (PC). Originally I became a hobbiest on the Amiga.

Now to my issue. If I test my code on Wii (actual), then all is fine. But when I test via Dolphin I just can't seem to detect the pointer? Either a real remote or an emulated one (apparently via mouse/keys). Has anyone had any success doing so with the Dolphin emulator?

Thanks
Re: Wiimote in Dolphin (emulator)
February 18, 2009 06:06PM
Isnt Dolphin a gamecube emulator? I didnt know it supported Wii games, much less Wii homebrew (whose executables are far different from the official executables).
Re: Wiimote in Dolphin (emulator)
February 18, 2009 06:25PM
It does support Wii, and Wii homebrew, but compatibility is limited.
Re: Wiimote in Dolphin (emulator)
February 18, 2009 06:32PM
Yes it supports both. I have the remote detected fine in Dolphin config (see pic below), but my code isn't receiving a "WPAD_ERR_NONE" like it does on the Wii actual.http://i44.tinypic.com/z5n3k.jpg

I was hoping others might have used it to test their projects. Or maybe someone has tested an iso where it works? But yes I suspect Tantric is correct about limited support atm.

Thanks for replies, I'll keep testing via WiFi for now.
Re: Wiimote in Dolphin (emulator)
February 18, 2009 07:42PM
Fascinating, I never knew it could be done. If I have time, I'll try it out later. This would greatly speed up development for me if I could get it working. Thanks for bringing this up blitter :)
Re: Wiimote in Dolphin (emulator)
February 18, 2009 08:50PM
YW, and good luck getting a better result than my "WPAD_ERR_NO_CONTROLLER" error (again, fine with Wii - error with Dolphin). But I can emulate 3D and 2D no problem.

For sure it will speed up development of projects, to test on a background window.

Here's some links:
The USB Bluetooth dongle I use http://www.ebuyer.com/product/149653
WiinRemote (use Wiimote to control mouse pointer) http://onakasuita.org/wii/index-e.html
Build sensor bar http://www.modpulse.com/articles/usb-wii-sensor-bar/
(cached version as site seems down) http://209.85.229.132/search?q=cache:EQvikhJrDJ8J:www.modpulse.com/articles/usb-wii-sensor-bar/+usb-wii-sensor-bar&hl=en&ct=clnk&cd=2&gl=uk
Re: Wiimote in Dolphin (emulator)
February 19, 2009 09:26AM
Ah, that's really cool, since I am without my Wii on weekdays at college. So GX functions work fine in Dolphin? Which version are you using? I may try it out myself, because the stuff I plan on working on right now involves GX and I hate not being able to do anything during the week because on weekends I'm too tired to do anything.
Re: Wiimote in Dolphin (emulator)
February 19, 2009 06:13PM
Yes GX functions work just fine - I'm texturing 3D objects, and drawing a ttf font. Which is kinda funny as the helloworld example didn't work when I first tried the emulator!

I always try the latest unofficial release, which are released every Monday...this weeks release has some debug appearing on top of things, I'm yet to look at what it means; "+m" etc.
Re: Wiimote in Dolphin (emulator)
February 20, 2009 01:01AM
Cool. I'm actually trying to write a GUI toolkit sort of thing using GX so I should be able to test everything in Dolphin fairly easily. I just remember when I first tried writing homebrew and the same thing happened; couldn't even get the simple hello world program to run. One last question, do you know whether the 64 bit version is faster? I've seen that sometimes this is the case with emulators but not always, and sometimes the 64 bit version is buggier.
Re: Wiimote in Dolphin (emulator)
February 20, 2009 04:56AM
Ah the GUI...I've spent many-a-night on mine - and have a nice system which allows for adding content effortlessly. Dolphin has really helped with that for sure (ex. lining up boxes around text took a few compiles to get right under all circumstances).

However, without pointer-interaction I'm not able to test roll-over etc. So a lot of recent testing has been on Wii actual (BSG anyone? :)) via WiFi and PIP. I'm really loving sending the dol to HBC via Programmer's Notepad, that's a great feature!

I'm not sure about the 64 bit version, still on Vista x86 here intending to update soon when I check if this Bluetooth dongle will ever function in Dolphin! (according to one of the Dolphin coders I should be already). I know that they work on Dolphin continuously, and a separate coder compiles the x64 version. If not already then it will eventually be faster, the whole project is in alpha really - with "limited compatability".

If you have a decent PC (CPU and GFX) then you will find the emulator is very quick indeed.
Re: Wiimote in Dolphin (emulator)
February 20, 2009 06:32PM
Meh, well my laptop has not so good graphics. But uh, I tried running Dolphin 2276 or whatever the latest SVN revision was, and it complained about a bunch of plugins such as DirectX9Video and Pad plugins etc, and then it refused to load. Was I supposed to download something else too?
Re: Wiimote in Dolphin (emulator)
February 20, 2009 08:49PM
hm you could try the latest DirectX redist http://download.microsoft.com/download/0/d/3/0d307649-9967-49fa-ab27-61f11024e97f/directx_nov2008_redist.exe

Not sure about the pad plugin? See what happens when you install the redist.
Re: Wiimote in Dolphin (emulator)
February 20, 2009 11:57PM
Installing the redist thing worked fine, and now I can run example programs perfectly. But of course now I'm stuck in the same situation as you; no Wiimote input. Have you tried asking on the Dolphin forums whether they plan to support a mouse emulating a Wiimote? That would be very useful and I'm actually kind of surprised that it doesn't work like that already.
Re: Wiimote in Dolphin (emulator)
February 21, 2009 01:11AM
Good to hear that worked for you. Hopefully between us we can solve this.

Ok I have an update!
Not there yet, but I managed to rip (backup) my Zelda disk as I read that it works in Dolphin. And sure enough it does, it even ran at 20fps on my rig. The Wiimote works too! Hm, now what are we not doing to activate it in our own code? It sure works on Wii actual. Anyone help - we are so close!
Re: Wiimote in Dolphin (emulator)
February 21, 2009 01:15AM
btw: there is apparently mouse emulation for aiming, and keys for buttons (A=A etc.), but so far all I get is WPAD_ERR_NO_CONTROLLER in "res" when I read with "u32 status; s32 res; res = WPAD_Probe(0, &status);".

edit: clarity



Edited 2 time(s). Last edit at 02/21/2009 01:16AM by blitter.
Sorry, only registered users may post in this forum.

Click here to login