16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 12:19:18 +02:00

move captureonstart handling to drivermode

This commit is contained in:
milek7
2022-04-01 15:50:06 +02:00
parent e66763df2d
commit fba7d98f2d
2 changed files with 1 additions and 9 deletions

View File

@@ -1035,14 +1035,6 @@ eu07_application::init_modes() {
else
push_mode( mode::scenarioloader );
if (Global.captureonstart)
{
Global.ControlPicking = false;
glfwSetInputMode(m_windows.front(), GLFW_CURSOR, GLFW_CURSOR_DISABLED);
}
else
Global.ControlPicking = true;
return 0;
}

View File

@@ -421,7 +421,7 @@ driver_mode::enter() {
Timer::ResetTimers();
set_picking( Global.ControlPicking );
set_picking( !Global.captureonstart );
}
// maintenance method, called when the mode is deactivated