MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / MyCallback

Function MyCallback

examples/SharedMemory/PhysicsClientExample.cpp:216–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void MyCallback(int buttonId, bool buttonState, void* userPtr)
217{
218 PhysicsClientExample* cl = (PhysicsClientExample*)userPtr;
219 b3Assert(cl);
220
221 if (cl && buttonState)
222 {
223 cl->enqueueCommand(buttonId);
224 }
225}
226
227void PhysicsClientExample::enqueueCommand(int commandId)
228{

Callers 1

initPhysicsMethod · 0.70

Calls 1

enqueueCommandMethod · 0.45

Tested by

no test coverage detected