Remove HaveFocus, and put that code into IsFocus. Thanks ayuanx.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5058 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-02-14 14:48:19 +00:00
parent a8793cbe52
commit dc7029e7f4
5 changed files with 18 additions and 32 deletions

View File

@ -310,7 +310,7 @@ bool IsKey(int Key)
}
else if (MapKey < 0x1100)
#elif defined(HAVE_X11) && HAVE_X11
if (HaveFocus() && (MapKey < 256 || MapKey >= 0xf000))
if (MapKey < 256 || MapKey >= 0xf000)
{
char keys[32];
KeyCode keyCode;
@ -346,7 +346,7 @@ bool IsKey(int Key)
}
#endif
#if defined(HAVE_X11) && HAVE_X11
if ((Key == EWM_SHAKE || Key == EWM_A || Key == EWM_B) && HaveFocus())
if (Key == EWM_SHAKE || Key == EWM_A || Key == EWM_B)
{
Window GLWin = *(Window *)g_WiimoteInitialize.pXWindow;
int root_x, root_y, win_x, win_y;