MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getModState

Method getModState

src/platform/WinDisplay.cpp:349–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void WinDisplay::getModState(bool& shift, bool& ctrl, bool& alt) {
350 shift = (GetKeyState(VK_SHIFT) < 0);
351 ctrl = (GetKeyState(VK_CONTROL) < 0);
352 alt = (GetKeyState(VK_MENU) < 0);
353}
354
355#define UNICODE_IS_HIGH_SURROGATE(ch) ((ch) >= 0xD800 && (ch) <= 0xDBFF)
356#define UNICODE_IS_LOW_SURROGATE(ch) ((ch) >= 0xDC00 && (ch) <= 0xDFFF)

Callers 3

mouseClampFunction · 0.45
updateRoamingCameraFunction · 0.45
GetKeyModifiersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected