diag(windows-nui): dump manager's internal SkeletonData[0] copy to check if our skeleton reaches the filter's buffer; revert position probe
This commit is contained in:
1 parent
cb85158379
commit
501ee262ad
1 file changed
+16
@@ -153,6 +153,22 @@ void DumpGameDisplayState() {
|
||||
ShimLog("game-skel3: R48=(%.3f,%.3f,%.3f) R54=(%.3f,%.3f,%.3f) R60=(%.3f,%.3f,%.3f)",
|
||||
asf(a0), asf(a1), asf(a2), asf(b0), asf(b1), asf(b2), asf(c0), asf(c1),
|
||||
asf(c2));
|
||||
|
||||
// The filter reads the manager's internal copy of SkeletonData[0]. The game's
|
||||
// NUI_SKELETON_FRAME sits at mgr+0x1a0 (hdr 0x30), so SkeletonData[0] begins
|
||||
// at mgr+0x1d0: eTrackingState@+0, dwTrackingID@+4, Position@+0x10. If this
|
||||
// shows state!=2/id!=1 the copy into the manager never happened.
|
||||
uint32_t fnum = 0, fflags = 0, st = 0, tid = 0, px = 0, py = 0, pz = 0;
|
||||
SafeReadU32(mgr + 0x1a8u, &fnum);
|
||||
SafeReadU32(mgr + 0x1acu, &fflags);
|
||||
SafeReadU32(mgr + 0x1d0u, &st);
|
||||
SafeReadU32(mgr + 0x1d4u, &tid);
|
||||
SafeReadU32(mgr + 0x1e0u, &px);
|
||||
SafeReadU32(mgr + 0x1e4u, &py);
|
||||
SafeReadU32(mgr + 0x1e8u, &pz);
|
||||
ShimLog("game-skel4: mgrFrame num=%u flags=0x%X SkelData0.state=%u id=%u "
|
||||
"pos=(%.3f,%.3f,%.3f)",
|
||||
fnum, fflags, st, tid, asf(px), asf(py), asf(pz));
|
||||
}
|
||||
|
||||
BOOL CALLBACK InitSensorLock(PINIT_ONCE, PVOID, PVOID*) {
|
||||
|
||||
Reference in new issue
Block a user