| 291 | } |
| 292 | |
| 293 | std::vector<KeyBinding> HotkeyManager::listAllKeybinds() { |
| 294 | std::lock_guard<std::mutex> l(lock); |
| 295 | std::vector<KeyBinding> out; |
| 296 | |
| 297 | for (const auto& [_, bind_set] : bindings) { |
| 298 | for (const auto& bind : bind_set) { |
| 299 | out.emplace_back(bind); |
| 300 | } |
| 301 | } |
| 302 | return out; |
| 303 | } |
| 304 | |
| 305 | bool HotkeyManager::handleKeybind(int sym, int modifiers) { |
| 306 | // Ensure gamestate is ready |
no outgoing calls
no test coverage detected