AIRLegend / aitrack

6DoF Head tracking software
MIT License
1.03k stars 102 forks source link

Ctrl-T shortcut not active at startup #187

Open Pieloth opened 1 year ago

Pieloth commented 1 year ago

Hi, AItrack 0.7.1 and 0.7.0

I noticed that just after starting AItrack, I'm not able to start tracking with Ctrl-T, even if it is ticked in the configuration menu

In order to start the tracking with Ctrl-T, I need to interact somehow with the mouse on UI:

Any idea about this?

Nicolas

searching46dof commented 1 year ago

The function WindowMain::set_shortcuts registers the Ctrl+T hotkey shortcut

It appears to only be invoked from Presenter::save_prefs(...) // Notify UI to enable/disable shortcut signals view->set_shortcuts(state.tracking_shortcut_enabled); This is only when you click "Apply" in the "Config Window"

WindowMain::WindowMain invoked on startup should also invoke WindowMain::set_shortcuts with the setting ConfigMgr::tracking_shortcut_enabled read from the configuration file prefs.ini after initializing WindowMain::toggle_tracking_shortcut = NULL