mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
WinKey+Shift+L/R Arrow handler.
Attempts to constrain canvas when switching between monitors via keyboard shortcut.
This commit is contained in:
parent
3e88e2acb8
commit
13a53dd0ca
|
|
@ -672,6 +672,11 @@ void PlatformWindowSDL::_processSDLEvent(SDL_Event &evt)
|
|||
case SDL_WINDOWEVENT_RESTORED:
|
||||
Con::setBoolVariable("pref::Video::isMaximized", false);
|
||||
break;
|
||||
case SDL_WINDOWEVENT_DISPLAY_CHANGED:
|
||||
Con::printf("Window moved to display #%d", evt.window.data1);
|
||||
Con::setIntVariable("pref::Video::deviceId", evt.window.data1);
|
||||
Con::evaluate("configureCanvas();");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue