MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / input_pointer

Function input_pointer

StereoKitC/systems/input.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58///////////////////////////////////////////
59
60pointer_t input_pointer(int32_t index, input_source_ filter) {
61 int32_t curr = 0;
62 for (int32_t i = 0; i < input_pointers.count; i++) {
63 if (input_pointers[i].source & filter) {
64 if (curr == index)
65 return input_pointers[i];
66 curr += 1;
67 }
68 }
69 return {};
70}
71
72///////////////////////////////////////////
73

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected