Ok, now the mac build should be fixed

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5051 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-02-13 21:12:16 +00:00
parent 47609c4524
commit 24a4d1a1e0
2 changed files with 4 additions and 2 deletions

View File

@ -606,6 +606,7 @@ bool IsKey(int Key)
if (MapKey < 256)
{
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
}
#elif defined HAVE_X11 && HAVE_X11
if (MapKey < 256 || MapKey > 0xf000)
{
@ -614,8 +615,8 @@ bool IsKey(int Key)
XQueryKeymap(GCdisplay, keys);
keyCode = XKeysymToKeycode(GCdisplay, MapKey);
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
#endif
}
#endif
else if (MapKey < 0x1100)
{
Ret = SDL_JoystickGetButton(GCMapping[g_ID].joy, MapKey - 0x1000); // Pad button

View File

@ -307,6 +307,7 @@ bool IsKey(int Key)
if (MapKey < 256)
{
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
}
#elif defined(HAVE_X11) && HAVE_X11
if (MapKey < 256 || MapKey >= 0xf000)
{
@ -315,8 +316,8 @@ bool IsKey(int Key)
XQueryKeymap(WMdisplay, keys);
keyCode = XKeysymToKeycode(WMdisplay, MapKey);
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
#endif
}
#endif
else if (MapKey < 0x1100)
{
Ret = SDL_JoystickGetButton(WiiMapping[g_ID].joy, MapKey - 0x1000); // Pad button