From fe10a1b5b02d4ecce63705aa8e435c7d1876109c Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sun, 24 Jan 2010 18:41:47 +0000 Subject: [PATCH] Fix the linux keyboard in the GCPad plugin too. Thanks j4ck.fr0st git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4953 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_GCPad/Src/GCPad.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp index f8baa645de..21146d1837 100644 --- a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp +++ b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp @@ -574,7 +574,7 @@ bool IsKey(int Key) #ifdef _WIN32 Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows) #else - Ret = KeyStatus[MapKey]; // Keyboard (Linux) + Ret = KeyStatus[Key]; // Keyboard (Linux) #endif } else if (MapKey < 0x1100) @@ -621,7 +621,7 @@ void ReadLinuxKeyboard() for (int i = 0; i < LAST_CONSTANT; i++) { - if (key == GCMapping[g_ID].Button[i]) + if (((int) key) == GCMapping[g_ID].Button[i]) KeyStatus[i] = true; } break; @@ -639,7 +639,7 @@ void ReadLinuxKeyboard() for (int i = 0; i < LAST_CONSTANT; i++) { - if (key == GCMapping[g_ID].Button[i]) + if (((int) key) == GCMapping[g_ID].Button[i]) KeyStatus[i] = false; } break;