Emulated Wiimote: Fixed typo in last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2288 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
12a869304c
commit
7218a070e6
|
@ -583,8 +583,9 @@ void ConfigDialog::PadGetStatus()
|
||||||
{
|
{
|
||||||
//Console::Print("SDL_WasInit: %i\n", SDL_WasInit(0));
|
//Console::Print("SDL_WasInit: %i\n", SDL_WasInit(0));
|
||||||
|
|
||||||
// Return if it's not detected
|
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
|
||||||
if(WiiMoteEmu::PadMapping[Page].ID >= SDL_NumJoysticks())
|
because of a manual ini file change, but we make that check anway. */
|
||||||
|
if(WiiMoteEmu::PadMapping[Page].ID < 0 || WiiMoteEmu::PadMapping[Page].ID >= SDL_NumJoysticks())
|
||||||
{
|
{
|
||||||
m_TStatusLeftIn[Page]->SetLabel(wxT("Not connected"));
|
m_TStatusLeftIn[Page]->SetLabel(wxT("Not connected"));
|
||||||
m_TStatusLeftOut[Page]->SetLabel(wxT("Not connected"));
|
m_TStatusLeftOut[Page]->SetLabel(wxT("Not connected"));
|
||||||
|
|
|
@ -50,7 +50,7 @@ void ConfigBox::PadGetStatus()
|
||||||
{
|
{
|
||||||
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
|
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
|
||||||
because of a manual ini file change, but we make that check anway. */
|
because of a manual ini file change, but we make that check anway. */
|
||||||
if(PadMapping[notebookpage].ID >= 0 && PadMapping[notebookpage].ID >= SDL_NumJoysticks())
|
if(PadMapping[notebookpage].ID < 0 || PadMapping[notebookpage].ID >= SDL_NumJoysticks())
|
||||||
{
|
{
|
||||||
m_TStatusIn[notebookpage]->SetLabel(wxT("Not connected"));
|
m_TStatusIn[notebookpage]->SetLabel(wxT("Not connected"));
|
||||||
m_TStatusOut[notebookpage]->SetLabel(wxT("Not connected"));
|
m_TStatusOut[notebookpage]->SetLabel(wxT("Not connected"));
|
||||||
|
|
Loading…
Reference in New Issue