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

Method getNumModifiers

src/lib/deskflow/KeyMap.cpp:1004–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004int32_t KeyMap::getNumModifiers(KeyModifierMask state)
1005{
1006 int32_t n = 0;
1007 for (; state != 0; state >>= 1) {
1008 if ((state & 1) != 0) {
1009 ++n;
1010 }
1011 }
1012 return n;
1013}
1014
1015bool KeyMap::isDeadKey(KeyID key)
1016{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected