Function ctru_sys::qtmConvertCoordToScreen
source · pub unsafe extern "C" fn qtmConvertCoordToScreen(
coord: *mut QTM_HeadTrackingInfoCoord,
screen_width: *mut f32,
screen_height: *mut f32,
x: *mut u32_,
y: *mut u32_
) -> Result
Expand description
Converts QTM coordinates to screen coordinates.
§Arguments
coord
- Coordinates to convert.screen_width
- Width of the screen. Can be NULL to use the default value for the top screen.screen_height
- Height of the screen. Can be NULL to use the default value for the top screen.x
- Pointer to output the screen X coordinate to.y
- Pointer to output the screen Y coordinate to.