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

Function registerHotkeys

lib/switcher-data.cpp:238–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238static void registerHotkeys()
239{
240 switcher->startHotkey = obs_hotkey_register_frontend(
241 "startSwitcherHotkey",
242 obs_module_text("AdvSceneSwitcher.hotkey.startSwitcherHotkey"),
243 startHotkeyFunc, NULL);
244 switcher->stopHotkey = obs_hotkey_register_frontend(
245 "stopSwitcherHotkey",
246 obs_module_text("AdvSceneSwitcher.hotkey.stopSwitcherHotkey"),
247 stopHotkeyFunc, NULL);
248 switcher->toggleHotkey = obs_hotkey_register_frontend(
249 "startStopToggleSwitcherHotkey",
250 obs_module_text(
251 "AdvSceneSwitcher.hotkey.startStopToggleSwitcherHotkey"),
252 startStopToggleHotkeyFunc, NULL);
253 switcher->newMacroHotkey = obs_hotkey_register_frontend(
254 "newMacroSwitcherHotkey",
255 obs_module_text("AdvSceneSwitcher.hotkey.macro.new"),
256 addNewMacroHotkeyFunc, NULL);
257 switcher->upMacroSegment = obs_hotkey_register_frontend(
258 "upMacroSegmentSwitcherHotkey",
259 obs_module_text("AdvSceneSwitcher.hotkey.macro.segment.up"),
260 upMacroSegmentHotkeyFunc, NULL);
261 switcher->downMacroSegment = obs_hotkey_register_frontend(
262 "downMacroSegmentSwitcherHotkey",
263 obs_module_text("AdvSceneSwitcher.hotkey.macro.segment.down"),
264 downMacroSegmentHotkeyFunc, NULL);
265 switcher->removeMacroSegment = obs_hotkey_register_frontend(
266 "removeMacroSegmentSwitcherHotkey",
267 obs_module_text("AdvSceneSwitcher.hotkey.macro.segment.remove"),
268 removeMacroSegmentHotkeyFunc, NULL);
269
270 switcher->hotkeysRegistered = true;
271}
272
273static void saveHotkey(obs_data_t *obj, obs_hotkey_id id, const char *name)
274{

Callers 1

LoadHotkeysMethod · 0.85

Calls 1

obs_module_textFunction · 0.85

Tested by

no test coverage detected