Updated base openvr

This commit is contained in:
Colin Sherratt
2015-11-10 02:04:48 -05:00
parent 395d3111fa
commit ecb266677c
3 changed files with 528 additions and 133 deletions

View File

@ -8,6 +8,7 @@ with open("openvr/headers/openvr_api.json") as f:
data = json.loads(f.read())
type_mapping = {
'int': 'i32',
'uint64_t': 'u64',
'uint32_t': 'u32',
'uint16_t': 'u16',
@ -26,12 +27,14 @@ type_mapping = {
# I'm lazy
'unsigned char *': '*const u8',
'char *': '*const u8',
'char **': '*const *const u8',
'const uint16_t *': '*const u16',
'const uint8_t *': '*const u8',
'const struct vr::HmdVector2_t *': '*const HmdVector2_t',
'const struct vr::RenderModel_Vertex_t *': '*const RenderModel_Vertex_t',
'float [3][4]': '[[f32; 4]; 3]',
'float [16]': '[f32; 16]',
'float [4]': '[f32; 4]',
'float [3]': '[f32; 3]',
'float [2]': '[f32; 2]',