Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This section applies only to Windows 7 and later operating systems.
The following code shows how to convert XR_BIAS to float:
float XRtoFloat( UINT XRComponent ) {
// The & 0x3ff shows that only 10 bits contribute to the conversion.
return (float)( (XRComponent & 0x3ff) - 0x180 ) / 510.f;
}