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
This commit is contained in:
Glenn Rice 2010-01-24 18:41:47 +00:00
parent 675e984514
commit fe10a1b5b0
1 changed files with 3 additions and 3 deletions

View File

@ -574,7 +574,7 @@ bool IsKey(int Key)
#ifdef _WIN32 #ifdef _WIN32
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows) Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
#else #else
Ret = KeyStatus[MapKey]; // Keyboard (Linux) Ret = KeyStatus[Key]; // Keyboard (Linux)
#endif #endif
} }
else if (MapKey < 0x1100) else if (MapKey < 0x1100)
@ -621,7 +621,7 @@ void ReadLinuxKeyboard()
for (int i = 0; i < LAST_CONSTANT; i++) 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; KeyStatus[i] = true;
} }
break; break;
@ -639,7 +639,7 @@ void ReadLinuxKeyboard()
for (int i = 0; i < LAST_CONSTANT; i++) 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; KeyStatus[i] = false;
} }
break; break;