MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / startStopToggleHotkeyFunc

Function startStopToggleHotkeyFunc

lib/switcher-data.cpp:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static void startStopToggleHotkeyFunc(void *, obs_hotkey_id, obs_hotkey_t *,
185 bool pressed)
186{
187 if (pressed) {
188 if (switcher->th && switcher->th->isRunning()) {
189 switcher->Stop();
190 } else {
191 switcher->Start();
192 }
193 }
194}
195
196QWidget *GetSettingsWindow();
197

Callers

nothing calls this directly

Calls 2

StopMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected