MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / myButtonCallback

Function myButtonCallback

examples/clients/ButtonCallback.c:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36#include <stdio.h>
37
38void myButtonCallback(void *userdata, const OSVR_TimeValue *timestamp,
39 const OSVR_ButtonReport *report) {
40 printf("Got report: button is %s\n",
41 (report->state ? "pressed" : "released"));
42}
43
44int main() {
45 OSVR_ClientContext ctx =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected