[Scummvm-git-logs] scummvm master -> 17b48db30293e087d72296e931d5f704f28d7731

scemino noreply at scummvm.org
Tue Jan 14 20:01:19 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
17b48db302 TWP: Fix mouse cursor is not locked/hidden


Commit: 17b48db30293e087d72296e931d5f704f28d7731
    https://github.com/scummvm/scummvm/commit/17b48db30293e087d72296e931d5f704f28d7731
Author: scemino (scemino74 at gmail.com)
Date: 2025-01-14T21:00:45+01:00

Commit Message:
TWP: Fix mouse cursor is not locked/hidden

Fix #15614

Changed paths:
    engines/twp/twp.cpp


diff --git a/engines/twp/twp.cpp b/engines/twp/twp.cpp
index dd0277f794c..e53cb623b2c 100644
--- a/engines/twp/twp.cpp
+++ b/engines/twp/twp.cpp
@@ -1011,6 +1011,9 @@ Common::Error TwpEngine::run() {
 	// Set the engine's debugger console
 	setDebugger(new Console());
 
+	g_system->showMouse(false);
+	g_system->lockMouse(true);
+
 	_gfx.init();
 	_hud->init();
 
@@ -1323,6 +1326,9 @@ Common::Error TwpEngine::run() {
 	_system->setImGuiCallbacks(ImGuiCallbacks());
 #endif
 
+	g_system->showMouse(true);
+	g_system->lockMouse(false);
+
 	return Common::kNoError;
 }
 
@@ -2110,6 +2116,9 @@ void TwpEngine::capture(Graphics::Surface &surface, int width, int height) {
 HSQUIRRELVM TwpEngine::getVm() { return _vm->get(); }
 
 int TwpEngine::runDialog(GUI::Dialog &dialog) {
+	g_system->showMouse(true);
+	g_system->lockMouse(false);
+
 	int result = Engine::runDialog(dialog);
 	updateSettingVars();
 	return result;




More information about the Scummvm-git-logs mailing list