MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / IsModifierKey

Method IsModifierKey

IntelPresentMon/Core/source/win/Key.cpp:186–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 }
185
186 bool Key::IsModifierKey() const
187 {
188 switch (code) {
189 case Code::Shift:
190 case Code::Ctrl:
191 case Code::Alt:
192 case Code::LShift:
193 case Code::RShift:
194 case Code::LCtrl:
195 case Code::RCtrl:
196 case Code::LAlt:
197 case Code::RAlt:
198 return true;
199 default:
200 return false;
201 }
202 }
203
204 bool Key::operator==(const Key& rhs) const
205 {

Callers 1

Kernel_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected