MCPcopy Create free account
hub / github.com/DFHack/dfhack / setHotkeyCommand

Method setHotkeyCommand

library/modules/Hotkey.cpp:371–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void HotkeyManager::setHotkeyCommand(std::string cmd) {
372 std::unique_lock<std::mutex> l(lock);
373 queued_command = std::move(cmd);
374 hotkey_sig = HotkeySignal::CmdReady;
375 l.unlock();
376 cond.notify_all();
377}
378
379void HotkeyManager::requestKeybindingInput(bool cancel) {
380 std::lock_guard<std::mutex> l(lock);

Callers 2

do_blueprintFunction · 0.80

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected