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

Function QueryMouseButton

engine/Poseidon/Input/InputSubsystem.cpp:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static float QueryMouseButton(const Input& in, int index, bool checkFocus)
146{
147 if (checkFocus && in.gameFocusLost > 0)
148 return 0;
149 if (index < 0 || index >= N_MOUSE_BUTTONS)
150 return 0;
151 return in.mouse.buttons[index];
152}
153
154static float QueryDoubleTapMouseButton(const Input& in, int index, bool checkFocus)
155{

Callers 3

QueryActionFunction · 0.85
ProfileModifierHeldFunction · 0.85
QueryProfileCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected