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

Method on_remove_keybind

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

Source from the content-addressed store, hash-verified

2459}
2460
2461void MapInstance::on_remove_keybind(RemoveKeybind *ev)
2462{
2463 MapClientSession &session(m_session_store.session_from_event(ev));
2464 Entity *ent = session.m_ent;
2465
2466 ent->m_player->m_keybinds.removeKeybind(ev->profile,(KeyName &)ev->key,(ModKeys &)ev->mods);
2467 //qCDebug(logMapEvents) << "Clearing Keybind: " << ev->profile << QString::number(ev->key) << QString::number(ev->mods);
2468}
2469
2470void MapInstance::setPlayerSpawn(Entity &e)
2471{

Callers

nothing calls this directly

Calls 1

removeKeybindMethod · 0.80

Tested by

no test coverage detected