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

Function setDefaultHotkeyBinding

lib/switcher-data.cpp:298–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static void setDefaultHotkeyBinding(obs_data_t *data, const char *name,
299 const char *value)
300{
301 OBSDataAutoRelease hotkeyData = obs_data_create_from_json(value);
302 OBSDataArrayAutoRelease hotkeyArray = obs_data_array_create();
303 obs_data_array_push_back(hotkeyArray, hotkeyData);
304 obs_data_set_default_array(data, name, hotkeyArray);
305}
306
307void SwitcherData::LoadHotkeys(obs_data_t *obj)
308{

Callers 1

LoadHotkeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected