Skip to content

Commit

Permalink
WinRT: bug fix: game-controller/joystick button-down events weren't g…
Browse files Browse the repository at this point in the history
…etting sent
  • Loading branch information
DavidLudwig committed Dec 25, 2013
1 parent 5e6aba0 commit 27e79b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/video/winrt/SDL_winrtvideo.cpp
Expand Up @@ -301,6 +301,12 @@ WINRT_CreateWindow(_THIS, SDL_Window * window)
*/
window->w = _this->displays[0].current_mode.w;
window->h = _this->displays[0].current_mode.h;

/* For now, treat WinRT apps as if they always have focus.
TODO, WinRT: try tracking keyboard and mouse focus state with respect to snapped apps
*/
SDL_SetMouseFocus(window);
SDL_SetKeyboardFocus(window);

/* Make sure the WinRT app's IFramworkView can post events on
behalf of SDL:
Expand Down

0 comments on commit 27e79b9

Please sign in to comment.