From 5d961c03ef9ce056882410d32433d71f36228cc7 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 7 Jan 2009 08:44:57 +0000 Subject: [PATCH] new compile on linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1817 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp | 4 ++-- Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp index 47050b911c..806a3b1431 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/ConfigDlg.cpp @@ -176,7 +176,7 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event) DoExtensionConnectedDisconnected(); /* It doesn't seem to be needed but shouldn't it at least take 25 ms to reconnect an extension after we disconnected another? */ - Sleep(25); + sleep(25); } // Update status @@ -208,4 +208,4 @@ void ConfigDialog::GeneralSettingsChanged(wxCommandEvent& event) DoExtensionConnectedDisconnected(); break; } -} \ No newline at end of file +} diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp index ed3270d6ba..a8794cc2c1 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp @@ -523,12 +523,13 @@ void FillReportExtension(wm_extension& _ext) by 0x08 */ memcpy(g_RegExtTmpReport + 0x08, &_ext, sizeof(_ext)); +#ifdef _WIN32 /**/if(GetAsyncKeyState('V')) // Log { std::string Temp = ArrayToString(g_RegExtTmpReport, sizeof(_ext), 0x08); wprintf("Nunchuck DataFrame: %s\n", Temp.c_str()); } - +#endif // Encrypt it wiimote_encrypt(&g_ExtKey, &g_RegExtTmpReport[0x08], 0x08, sizeof(_ext));