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:
parent
10192a9a4b
commit
a241a469b8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue