- fix initialize slot2;
This commit is contained in:
mtabachenko 2013-11-11 20:25:33 +00:00
parent b4e1286dd3
commit 3ee1fe0d4b
1 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,9 @@
#include "../registers.h"
#include "../MMU.h"
#include "../NDSSystem.h"
#ifdef HOST_WINDOWS
#include "../windows/inputdx.h"
#endif
class Slot2_Auto : public ISlot2Interface
{
@ -76,6 +79,12 @@ public:
mSelectedImplementation = slot2_List[selection];
mSelectedImplementation->connect();
printf("Slot2 auto-selected device type: %s\n", mSelectedImplementation->info()->name());
#ifdef HOST_WINDOWS
Guitar.Enabled = (selection == NDS_SLOT2_GUITARGRIP)?true:false;
Piano.Enabled = (selection == NDS_SLOT2_EASYPIANO)?true:false;
Paddle.Enabled = (selection == NDS_SLOT2_PADDLE)?true:false;
#endif
}
virtual void disconnect()