float 변환 규칙으로 XR_BIAS
이 섹션은 Windows 7 이상 운영 체제에만 적용됩니다.
다음 코드는 XR_BIAS 부동 소수로 변환하는 방법을 보여줍니다.
float XRtoFloat( UINT XRComponent ) {
// The & 0x3ff shows that only 10 bits contribute to the conversion.
return (float)( (XRComponent & 0x3ff) - 0x180 ) / 510.f;
}