MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / BufferKeyEvent

Method BufferKeyEvent

engine/Poseidon/Input/KeyboardState.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // namespace
50
51void KeyboardState::BufferKeyEvent(int scancode, bool down, DWORD timestamp)
52{
53 if (scancode < 0 || scancode >= SDL_SCANCODE_COUNT)
54 return;
55 if (keyCount_ >= kKeyBufferSize)
56 return;
57 keyBuffer_[keyCount_++] = {scancode, down, timestamp};
58}
59
60void KeyboardState::DiscardBuffered()
61{

Callers 4

SDLInput_BufferKeyEventFunction · 0.80
PressAndReleaseFunction · 0.80
ArmClassicCheatEntryFunction · 0.80

Calls

no outgoing calls

Tested by 2

PressAndReleaseFunction · 0.64
ArmClassicCheatEntryFunction · 0.64