From 72112584dedcb95c516b248cce0891fa2ac60ea0 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Sun, 15 Feb 2009 02:06:07 +0000 Subject: [PATCH] Emulated Wiimote: Forgot a few ifdefs git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2244 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_Wiimote/Src/main.cpp | 19 +++++++++++++------ 1 file 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 } // ---------------