| 1139 | } |
| 1140 | |
| 1141 | void Macro::SetupHotkeys() |
| 1142 | { |
| 1143 | if (_pauseHotkey != OBS_INVALID_HOTKEY_ID || |
| 1144 | _unpauseHotkey != OBS_INVALID_HOTKEY_ID || |
| 1145 | _togglePauseHotkey != OBS_INVALID_HOTKEY_ID) { |
| 1146 | ClearHotkeys(); |
| 1147 | } |
| 1148 | |
| 1149 | _pauseHotkey = registerHotkeyHelper( |
| 1150 | "macro_pause_hotkey_", "AdvSceneSwitcher.hotkey.macro.pause", |
| 1151 | this, pauseCB); |
| 1152 | _unpauseHotkey = registerHotkeyHelper( |
| 1153 | "macro_unpause_hotkey_", |
| 1154 | "AdvSceneSwitcher.hotkey.macro.unpause", this, unpauseCB); |
| 1155 | _togglePauseHotkey = registerHotkeyHelper( |
| 1156 | "macro_toggle_pause_hotkey_", |
| 1157 | "AdvSceneSwitcher.hotkey.macro.togglePause", this, |
| 1158 | togglePauseCB); |
| 1159 | } |
| 1160 | |
| 1161 | void Macro::ClearHotkeys() const |
| 1162 | { |
nothing calls this directly
no test coverage detected