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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 338 339 340 341 342 ... 369 Next »

Dolphin 2 or more Wiimotes
View New Posts | View Today's Posts

Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin 2 or more Wiimotes
11-15-2009, 06:01 AM
#1
bonkersdeluxe
Unregistered
 
Hi!

At first dolphin is a great emulator! Thanks!


I will use 2 or more wiimotes with the emulator.
I´ve downloaded the SVN 4560.

I changed the code below.
2 wiimotes were initiliazed. (LED 4 is shining on both wii motes)
I can save the setting for the 2 motes, but it don´t loads the settings again.
When i start a game only one wiimote will assign with a player.
The other wiimote will not assigned. (No LED is shining)

PS. I have only two wiimotes at this moment.
I can test it only with 2 wiimotes.


My code changes


Core\src\CoreParameters.h

...
#include "IniFile.h"
#include <string>

#define MAXPADS 4
#define MAXWIIMOTES 4 //old value 1
struct SCoreStartupParameter...


I changed the MAX_WIIMOTES value from 1 to 4


Plugin_Wiimotes\src\main.h

...#endif
// Definitions and declarations
void DoInitialize();
int GetUpdateRate();
void InterruptDebugging(bool Emu, const void* _pData);
void ReadDebugging(bool Emu, const void* _pData, int Size);
bool IsFocus();
#define MAX_WIIMOTES 4
....

I changed the MAX_WIIMOTES value from 1 to 4

Plugin_Wiimotes\src\config.cpp

...
void Config::Load(bool ChangePad)
{
Loaded = true;

std:Confusedtring temp;
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");

// General
iniFile.Get("Settings", "SidewaysDPad", &bSidewaysDPad, false);
iniFile.Get("Settings", "ExtensionConnected", &iExtensionConnected, EXT_NONE);
iniFile.Get("Settings", "MotionPlusConnected", &bMotionPlusConnected, false);

// Real Wiimote
iniFile.Get("Real", "Connect", &bConnectRealWiimote, true);
iniFile.Get("Real", "Use", &bUseRealWiimote, true);
iniFile.Get("Real", "UpdateStatus", &bUpdateRealWiimote, true);
iniFile.Get("Real", "AccNeutralX", &iAccNeutralX, 0);
iniFile.Get("Real", "AccNeutralY", &iAccNeutralY, 0);
iniFile.Get("Real", "AccNeutralZ", &iAccNeutralZ, 0);
iniFile.Get("Real", "AccNunNeutralX", &iAccNunNeutralX, 0);
iniFile.Get("Real", "AccNunNeutralY", &iAccNunNeutralY, 0);
iniFile.Get("Real", "AccNunNeutralZ", &iAccNunNeutralZ, 0);

for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Get(SectionName, "NoTriggerFilter", &bNoTriggerFilter, false);
...

I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)


Plugin_Wiimotes\src\config.cpp

...
void Config::Save(int Slot)
{
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
iniFile.Set("Settings", "SidewaysDPad", bSidewaysDPad);
iniFile.Set("Settings", "ExtensionConnected", iExtensionConnected);
iniFile.Set("Settings", "MotionPlusConnected", bMotionPlusConnected);

iniFile.Set("Real", "Connect", bConnectRealWiimote);
iniFile.Set("Real", "Use", bUseRealWiimote);
iniFile.Set("Real", "UpdateStatus", bUpdateRealWiimote);
iniFile.Set("Real", "AccNeutralX", iAccNeutralX);
iniFile.Set("Real", "AccNeutralY", iAccNeutralY);
iniFile.Set("Real", "AccNeutralZ", iAccNeutralZ);
iniFile.Set("Real", "AccNunNeutralX", iAccNunNeutralX);
iniFile.Set("Real", "AccNunNeutralY", iAccNunNeutralY);
iniFile.Set("Real", "AccNunNeutralZ", iAccNunNeutralZ);

for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);

iniFile.Set(SectionName, "Enabled", WiiMoteEmu:TongueadMapping[i].enabled);
iniFile.Set(SectionName, "NoTriggerFilter", bNoTriggerFilter);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)


With this changes, i will get the tabs Wiimote 1 - 4.
The wii motes are initialized, but it don´t loads the setting for the others players. I can´t found these lines in the sourcecode. I can save the setting. The wiimotes.ini contains the values. Also its saved my settings, but won´t load.

Please can anybody help me?

Thanks!

Bye

Sincerely Bonkersdeluxe
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Dolphin 2 or more Wiimotes - bonkersdeluxe - 11-15-2009, 06:01 AM
RE: Dolphin 2 or more Wiimotes - Legend80 - 11-15-2009, 07:20 AM
RE: Dolphin 2 or more Wiimotes - kofkin00 - 11-17-2009, 06:56 PM
RE: Dolphin 2 or more Wiimotes - Barca - 12-12-2009, 10:43 PM
RE: Dolphin 2 or more Wiimotes - James333 - 12-13-2009, 01:38 AM
RE: Dolphin 2 or more Wiimotes - Barca - 12-13-2009, 04:11 AM
RE: Dolphin 2 or more Wiimotes - James333 - 12-13-2009, 05:25 AM

  • 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