mirror of https://github.com/encounter/SDL.git
WinRT: bug fix: game-controller/joystick button-down events weren't getting sent
This commit is contained in:
parent
5e6aba0670
commit
27e79b93ec
|
@ -302,6 +302,12 @@ WINRT_CreateWindow(_THIS, SDL_Window * window)
|
||||||
window->w = _this->displays[0].current_mode.w;
|
window->w = _this->displays[0].current_mode.w;
|
||||||
window->h = _this->displays[0].current_mode.h;
|
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
|
/* Make sure the WinRT app's IFramworkView can post events on
|
||||||
behalf of SDL:
|
behalf of SDL:
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue