MCPcopy Create free account
hub / github.com/Segs/Segs / on_reset_keybinds

Method on_reset_keybinds

Projects/CoX/Servers/MapServer/MapInstance.cpp:2563–2572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2561 assert(false);
2562}
2563void MapInstance::on_reset_keybinds(ResetKeybinds *ev)
2564{
2565 const GameDataStore &data(getGameData());
2566 const Parse_AllKeyProfiles &default_profiles(data.m_keybind_profiles);
2567 MapClientSession &session(m_session_store.session_from_event(ev));
2568 Entity *ent = session.m_ent;
2569
2570 ent->m_player->m_keybinds.resetKeybinds(default_profiles);
2571 //qCDebug(logMapEvents) << "Resetting Keybinds to defaults.";
2572}
2573
2574void MapInstance::on_select_keybind_profile(SelectKeybindProfile *ev)
2575{

Callers

nothing calls this directly

Calls 1

resetKeybindsMethod · 0.80

Tested by

no test coverage detected