MCPcopy Create free account
hub / github.com/defold/defold / GetMouseButton

Function GetMouseButton

engine/hid/src/hid.cpp:309–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 }
308
309 bool GetMouseButton(MousePacket* packet, MouseButton button)
310 {
311 if (packet != 0x0)
312 return packet->m_Buttons[button / 32] & (1 << (button % 32));
313 else
314 return false;
315 }
316
317 void SetMouseButton(HMouse mouse, MouseButton button, bool value)
318 {

Callers 3

TEST_FFunction · 0.50
UpdateFunction · 0.50
UpdateBindingFunction · 0.50

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.40