MCPcopy Create free account
hub / github.com/deskflow/deskflow / getButton

Method getButton

src/lib/deskflow/KeyState.cpp:996–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994}
995
996KeyButton KeyState::getButton(KeyID id, int32_t group) const
997{
998 const deskflow::KeyMap::KeyItemList *items = m_keyMap.findCompatibleKey(id, group, 0, 0);
999 if (items == nullptr) {
1000 return 0;
1001 } else {
1002 return items->back().m_button;
1003 }
1004}
1005
1006void KeyState::addAliasEntries()
1007{

Callers

nothing calls this directly

Calls 1

findCompatibleKeyMethod · 0.80

Tested by

no test coverage detected