XR_BIAS zu Float-Konvertierungsregeln

Dieser Abschnitt gilt nur für Windows 7 und höhere Betriebssysteme.

Der folgende Code zeigt, wie Sie XR_BIAS in float konvertieren:

float XRtoFloat( UINT XRComponent ) {
// The & 0x3ff shows that only 10 bits contribute to the conversion. 
 return (float)( (XRComponent & 0x3ff) - 0x180 ) / 510.f;
}