summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2014-09-30 01:28:01 -0400
committercomex <comexk@gmail.com>2014-09-30 01:35:48 -0400
commit8fed5aa492343e2d0a3455dd75961ac75cde4aba (patch)
tree0a30db1a902be7458a9b77a120b4941916f915bc /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
parentb5ebace92e6645b50908c3405626f4a9eb303367 (diff)
Fix focus detection on OS X by replacing wxGetActiveWindow with wxWindow::FindFocus.
wxGetActiveWindow is implemented as "return NULL" on OS X, while wxWindow::FindFocus works. On Windows, the difference is in the use of GetActiveWindow() vs. GetForegroundWindow(). A MSDN comment says: > A system has only one active window, which GetForegroundWindow() > returns. GetActiveWindow() seems to return the same window as > GetForegroundWindow() if the foreground window belongs to the current > thread. Otherwise, it always returns null, rather than the topmost > window of the calling thread. Since we are on the GUI thread, it shouldn't make any difference.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
0 files changed, 0 insertions, 0 deletions