mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
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:
parent
47609c4524
commit
24a4d1a1e0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user