mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Update win32Window.cpp
This commit is contained in:
parent
f1fa36fe60
commit
3495bd56ca
1 changed files with 13 additions and 0 deletions
|
|
@ -64,6 +64,19 @@ static bool isScreenSaverRunning()
|
||||||
return sreensaver;
|
return sreensaver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DISPLAY_DEVICE GetPrimaryDevice()
|
||||||
|
{
|
||||||
|
int index = 0;
|
||||||
|
DISPLAY_DEVICE dd;
|
||||||
|
dd.cb = sizeof(DISPLAY_DEVICE);
|
||||||
|
|
||||||
|
while (EnumDisplayDevices(NULL, index++, &dd, 0))
|
||||||
|
{
|
||||||
|
if (dd.StateFlags & DISPLAY_DEVICE_PRIMARY_DEVICE) return dd;
|
||||||
|
}
|
||||||
|
return dd;
|
||||||
|
}
|
||||||
|
|
||||||
Win32Window::Win32Window(): mMouseLockPosition(0,0),
|
Win32Window::Win32Window(): mMouseLockPosition(0,0),
|
||||||
mShouldLockMouse(false),
|
mShouldLockMouse(false),
|
||||||
mMouseLocked(false),
|
mMouseLocked(false),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue