MCPcopy Create free account
hub / github.com/SFML/SFML / isKeyPressed

Function isKeyPressed

src/SFML/Window/Win32/InputImpl.cpp:591–595  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

589{
590////////////////////////////////////////////////////////////
591bool isKeyPressed(Keyboard::Key key)
592{
593 const int virtualKey = sfKeyToVirtualKey(key);
594 return (GetAsyncKeyState(virtualKey) & 0x8000) != 0;
595}
596
597
598////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

sfKeyToVirtualKeyFunction · 0.85
sfScanToVirtualKeyFunction · 0.85

Tested by

no test coverage detected