From a241a469b89faaea4182510d4947cb7ae0426db7 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Wed, 27 Jan 2010 15:55:04 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_GCPad/Src/GCPad.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp index bf417abf5b..f2446c07d8 100644 --- a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp +++ b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp @@ -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 }