|
@@ -68,7 +68,7 @@ namespace Polycode {
|
|
|
if (fullScreen && !xRes && !yRes) {
|
|
if (fullScreen && !xRes && !yRes) {
|
|
|
getScreenInfo(&xRes, &yRes, NULL);
|
|
getScreenInfo(&xRes, &yRes, NULL);
|
|
|
}
|
|
}
|
|
|
- mouseEnabled = true;
|
|
|
|
|
|
|
+ mouseEnabled = true; mouseCaptured = false;
|
|
|
lastSleepFrameTicks = 0;
|
|
lastSleepFrameTicks = 0;
|
|
|
|
|
|
|
|
this->monitorIndex = monitorIndex;
|
|
this->monitorIndex = monitorIndex;
|
|
@@ -87,6 +87,10 @@ namespace Polycode {
|
|
|
void Core::enableMouse(bool newval) {
|
|
void Core::enableMouse(bool newval) {
|
|
|
mouseEnabled = newval;
|
|
mouseEnabled = newval;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ void Core::captureMouse(bool newval) {
|
|
|
|
|
+ mouseCaptured = newval;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
int Core::getNumVideoModes() {
|
|
int Core::getNumVideoModes() {
|
|
|
return numVideoModes;
|
|
return numVideoModes;
|