MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / registerKey

Function registerKey

Samples/NiViewer/Keyboard.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void registerKey(unsigned char key, const char* Description, ActionFunc func, int arg)
68{
69 XnKeyboardAction* pKey = &g_KeyboardMap[g_nRegisteredKeys];
70 pKey->key = key;
71 pKey->csDescription = Description;
72 pKey->pCallbackFunc = func;
73 pKey->nCallbackArg = arg;
74 g_nRegisteredKeys++;
75}
76
77void endKeyboardGroup()
78{

Callers 1

createKeyboardMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected