///////////////////////////////////////////////////////
| 123 | |
| 124 | //////////////////////////////////////////////////////////// |
| 125 | SensorManager::~SensorManager() |
| 126 | { |
| 127 | // Per sensor cleanup |
| 128 | for (Item& item : m_sensors) |
| 129 | { |
| 130 | if (item.available) |
| 131 | item.sensor.close(); |
| 132 | } |
| 133 | |
| 134 | // Global sensor cleanup |
| 135 | SensorImpl::cleanup(); |
| 136 | } |
| 137 | |
| 138 | } // namespace sf::priv |