Ok, this really does it.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5052 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
24a4d1a1e0
commit
5e6eecf0af
|
@ -607,6 +607,7 @@ bool IsKey(int Key)
|
|||
{
|
||||
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
|
||||
}
|
||||
else if (MapKey < 0x1100)
|
||||
#elif defined HAVE_X11 && HAVE_X11
|
||||
if (MapKey < 256 || MapKey > 0xf000)
|
||||
{
|
||||
|
@ -616,8 +617,10 @@ bool IsKey(int Key)
|
|||
keyCode = XKeysymToKeycode(GCdisplay, MapKey);
|
||||
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
|
||||
}
|
||||
#endif
|
||||
else if (MapKey < 0x1100)
|
||||
#else
|
||||
if (MapKey < 0x1100)
|
||||
#endif
|
||||
{
|
||||
Ret = SDL_JoystickGetButton(GCMapping[g_ID].joy, MapKey - 0x1000); // Pad button
|
||||
}
|
||||
|
|
|
@ -308,6 +308,7 @@ bool IsKey(int Key)
|
|||
{
|
||||
Ret = GetAsyncKeyState(MapKey); // Keyboard (Windows)
|
||||
}
|
||||
else if (MapKey < 0x1100)
|
||||
#elif defined(HAVE_X11) && HAVE_X11
|
||||
if (MapKey < 256 || MapKey >= 0xf000)
|
||||
{
|
||||
|
@ -317,8 +318,10 @@ bool IsKey(int Key)
|
|||
keyCode = XKeysymToKeycode(WMdisplay, MapKey);
|
||||
Ret = (keys[keyCode/8] & (1 << (keyCode%8))); // Keyboard (Linux)
|
||||
}
|
||||
#endif
|
||||
else if (MapKey < 0x1100)
|
||||
#else
|
||||
if (MapKey < 0x1100)
|
||||
#endif
|
||||
{
|
||||
Ret = SDL_JoystickGetButton(WiiMapping[g_ID].joy, MapKey - 0x1000); // Pad button
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue