MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetGyros

Method GetGyros

Source/PSMoveMgr.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void PSMoveMgr::GetGyros(int id, ofVec3f& gyros)
69{
70 if (mMove[id])
71 {
72 int x, y, z;
73 psmove_get_gyroscope(mMove[id], &x, &y, &z);
74 gyros.x = x;
75 gyros.y = y;
76 gyros.z = z;
77 }
78}
79
80void PSMoveMgr::GetAccel(int id, ofVec3f& accel)
81{

Callers 1

PollMethod · 0.80

Calls 1

psmove_get_gyroscopeFunction · 0.50

Tested by

no test coverage detected