aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys/src/services/qtm.rs
blob: 37bc8db55937218478d409564d8d2dfe9c8e15e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* automatically generated by rust-bindgen */

#![allow(dead_code,
         non_camel_case_types,
         non_upper_case_globals,
         non_snake_case)]
#[repr(C)]
#[derive(Copy, Clone)]
#[derive(Debug)]
pub struct QTM_HeadTrackingInfoCoord {
    pub x: f32,
    pub y: f32,
}
impl ::core::default::Default for QTM_HeadTrackingInfoCoord {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy, Clone)]
#[derive(Debug)]
pub struct QTM_HeadTrackingInfo {
    pub flags: [u8_; 5usize],
    pub padding: [u8_; 3usize],
    pub floatdata_x08: f32,
    pub coords0: [QTM_HeadTrackingInfoCoord; 4usize],
    pub unk_x2c: [u32_; 5usize],
}
impl ::core::default::Default for QTM_HeadTrackingInfo {
    fn default() -> Self { unsafe { ::core::mem::zeroed() } }
}
extern "C" {
    pub fn qtmInit() -> Result;
    pub fn qtmExit();
    pub fn qtmCheckInitialized() -> u8;
    pub fn qtmCheckHeadFullyDetected(info: *mut QTM_HeadTrackingInfo) -> u8;
    pub fn qtmConvertCoordToScreen(coord: *mut QTM_HeadTrackingInfoCoord,
                                   screen_width: *mut f32,
                                   screen_height: *mut f32, x: *mut u32_,
                                   y: *mut u32_) -> Result;
    pub fn QTM_GetHeadTrackingInfo(val: u64_, out: *mut QTM_HeadTrackingInfo)
     -> Result;
}
use ::types::*;