Make arrow keys (and others) work with the GCPad plugin.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4970 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-01-27 15:55:04 +00:00
parent 10192a9a4b
commit a241a469b8
1 changed files with 3 additions and 1 deletions

View File

@ -583,11 +583,13 @@ bool IsKey(int Key)
int Ret = NULL;
int MapKey = GCMapping[g_ID].Button[Key];
#ifdef _WIN32
if (MapKey < 256)
{
#ifdef _WIN32
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
#else
if (MapKey < 256 || MapKey > 0xf000)
{
Ret = KeyStatus[Key]; // Keyboard (Linux)
#endif
}