Fix of saving the 3DConnexion status on OSX.

Fixes 2.2.0 RC2 - 3Dconnexion settings not saved / Zoom digital (#3791)
This commit is contained in:
bubnikv 2020-03-09 10:36:55 +01:00
parent 6723b5f3cd
commit ec75b760b8
2 changed files with 10 additions and 4 deletions

View file

@ -152,6 +152,8 @@ static void DeviceAdded(uint32_t unused)
static void DeviceRemoved(uint32_t unused)
{
BOOST_LOG_TRIVIAL(info) << "3dx device removed\n";
assert(m_connected);
assert(! m_device_str.empty());
mouse_3d_controller->disconnected();
}
@ -214,6 +216,8 @@ void Mouse3DController::shutdown()
CleanupConnexionHandlers();
unload_driver();
}
// Copy the current parameters to parameter database, mark the device as disconnected.
this->disconnected();
mouse_3d_controller = nullptr;
}