• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 153 154 155 156 157 ... 315 Next »

Wiimote not working with my homebrew game...
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Wiimote not working with my homebrew game...
01-31-2015, 08:54 AM
#1
MaciekP42
Unregistered
 
Hello Everyone,
I just started homebrew game development for Wii. It's kind of hobby, just expanding my C/C++ skills. I'm using dolphin 4.0.2 stable and for sdk i use devkitppc. There's a problem. When I'm running hello world example from devkit, everything works good, but input is not working. I have Wiimote that i use on my wii connected to Dolphin. It works really good with original nintendo games like New Super Mario Bros Wii, but not working with homebrew applications. If this will help, here's loop code:
Code:
WPAD_Init();
// ... some more code ...
while(1) {
WPAD_ScanPads();

if ( WPAD_ButtonsDown(0) & WPAD_BUTTON_A ) printf("A Pressed\n");

if ( WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME ) exit(0);

VIDEO_WaitVSync();
}
Am i doing something wrong or my dolphin settings are wrong. If these informations are not enough please tell me what to add. Please Reply fast.

@EDIT: I forgot mentioning that wiimote is connected when running homebrew, and it is vibrating when game starts. But app is not catching input.
Reply
01-31-2015, 09:06 AM
#2
tueidj Offline
Senior Member
****
Posts: 552
Threads: 0
Joined: Apr 2013
Are you sure the problem isn't the wiimote, but your printfs not showing up? Make sure real XFB is enabled.
Find
Reply
01-31-2015, 09:34 AM
#3
MaciekP42
Unregistered
 
Other Printfs are showing up, i set xfb, as it was part of tutorial, It only cant read input.
Reply
02-01-2015, 01:37 AM
#4
MaciekP42
Unregistered
 
Erm... this may be some important info i forgot to mention in above posts. It's wiimote with wii motion plus, and what's strange it's working with original nintendo games on dolphin when connected the normal way (with MS bluetooth stack) but not working with my homebrew hello world app. On bluetooth it's named RVL-CNT-01.
Reply
02-02-2015, 12:00 AM
#5
MaciekP42
Unregistered
 
Finally found a fix, now posting it for other developers, who will experience similar problem with Dolphin. I downloaded latest build, 4.0-5394 and everything works perfectly. The problem was that on older version my app can't detect wiimote (idk why). The problem is sloved.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode