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

Method BufferButton

engine/Poseidon/Input/MouseState.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using Poseidon::Foundation::UITime;
10
11void MouseState::BufferButton(int btn, bool down)
12{
13 if (btnCount_ >= kButtonBufferSize)
14 return;
15 btnBuffer_[btnCount_++] = {btn, down};
16}
17
18void MouseState::BufferMotion(float dx, float dy)
19{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected