MCPcopy Create free account
hub / github.com/Kitware/VTK / RecoverModifiersStatus

Function RecoverModifiersStatus

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:136–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134// clang-format on
135
136void RecoverModifiersStatus(int& ctrl, int& shift, int& alt)
137{
138 ctrl = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
139 shift = (GetKeyState(VK_SHIFT) & 0x8000) != 0;
140 alt = (GetKeyState(VK_MENU) & 0x8000) != 0;
141}
142
143void RecoverKeyEventInformation(
144 UINT vCode, UINT nFlags, int& ctrl, int& shift, int& alt, char& keyCode, const char*& keySym)

Callers 4

OnCharMethod · 0.85
OnTouchMethod · 0.85
OnDropFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected