History

add 'reset sensors' to preferences

Alexander Ivash committed 8 years ago

Commit 56cd4e51 parent 929fec71 file · +7 −0Browse files

Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ui/PreferencesDialog.cpp+7−0
@@ -300,6 +300,13 @@ void setupPreferences() { · 299 unmodified lines
300300 preference->setStep(0.001f);
301301 preferences->addPreference(preference);
302302 }
303+ {
304+ auto preference = new ButtonPreference(MOVEMENT, "RESET SENSORS", [] {
305+ qApp->resetSensors();
306+ });
307+
308+ preferences->addPreference(preference);
309+ }
303310
304311 static const QString AVATAR_CAMERA{ "Mouse Sensitivity" };
305312 {