MCPcopy Create free account
hub / github.com/assaultcube/AC / iskeypressed

Function iskeypressed

source/src/menus.cpp:1109–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107COMMAND(menuselectiondescbgcolor, "ssss");
1108
1109static bool iskeypressed(int key)
1110{
1111 int numkeys = 0;
1112 Uint8 const* state = SDL_GetKeyboardState(&numkeys);
1113 return key < numkeys && state[key] != 0;
1114}
1115
1116void menusay(const char *text)
1117{

Callers 1

menukeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected