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

Method GetAccel

Source/PSMoveMgr.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void PSMoveMgr::GetAccel(int id, ofVec3f& accel)
81{
82 if (mMove[id])
83 {
84 int x, y, z;
85 psmove_get_accelerometer(mMove[id], &x, &y, &z);
86 accel.x = x;
87 accel.y = y;
88 accel.z = z;
89 }
90}
91
92bool PSMoveMgr::IsButtonDown(int id, PSMove_Button button)
93{

Callers 1

PollMethod · 0.80

Calls 1

psmove_get_accelerometerFunction · 0.50

Tested by

no test coverage detected