diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-02-15 02:06:07 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-02-15 02:06:07 +0000 |
| commit | 72112584dedcb95c516b248cce0891fa2ac60ea0 (patch) | |
| tree | 271a4aad1806e75543f9537f2c484dbe63357a2a /Source | |
| parent | 34dbb40ef54b0702e9ab94f6e6ac2976fa43b79d (diff) | |
Emulated Wiimote: Forgot a few ifdefs
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2244 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_Wiimote/Src/main.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Source/Plugins/Plugin_Wiimote/Src/main.cpp b/Source/Plugins/Plugin_Wiimote/Src/main.cpp index b1999246d0..15057b4060 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/main.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/main.cpp @@ -392,11 +392,17 @@ extern "C" unsigned int Wiimote_GetAttachedControllers() void OpenConsole(bool Open) { // Close the console window - if (Console::GetHwnd() != NULL && !Open) + #ifdef _WIN32 + if (Console::GetHwnd() != NULL && !Open) + #else + if (false) + #endif { Console::Close(); // Wait here until we have let go of the button again - while(GetAsyncKeyState(VK_INSERT)) {Sleep(10);} + #ifdef _WIN32 + while(GetAsyncKeyState(VK_INSERT)) {Sleep(10);} + #endif return; } @@ -405,10 +411,11 @@ void OpenConsole(bool Open) Console::Print("\n\nWiimote console opened\n"); // Move window - //MoveWindow(Console::GetHwnd(), 0,400, 100*8,10*14, true); // small window - //MoveWindow(Console::GetHwnd(), 400,0, 100*8,70*14, true); // big window - MoveWindow(Console::GetHwnd(), 200,0, 130*8,70*14, true); // big wide window - + #ifdef _WIN32 + //MoveWindow(Console::GetHwnd(), 0,400, 100*8,10*14, true); // small window + //MoveWindow(Console::GetHwnd(), 400,0, 100*8,70*14, true); // big window + MoveWindow(Console::GetHwnd(), 200,0, 130*8,70*14, true); // big wide window + #endif } // --------------- |
