From 22f1f6b5c377c5deb910d4b1256f2228f937e6a6 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Sun, 24 Sep 2017 01:20:10 -0400 Subject: [PATCH] Fill all "unused" sections in KPADData structure --- padscore_functions.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/padscore_functions.h b/padscore_functions.h index a9329f8..141c786 100644 --- a/padscore_functions.h +++ b/padscore_functions.h @@ -108,16 +108,29 @@ typedef struct _KPADData u32 btns_h; u32 btns_d; u32 btns_r; - u32 unused_1[5]; + f32 acc_x; + f32 acc_y; + f32 acc_z; + f32 acc_value; + f32 acc_speed; f32 pos_x; f32 pos_y; - u32 unused_2[3]; + f32 vec_x; + f32 vec_y; + f32 speed; f32 angle_x; f32 angle_y; - u32 unused_3[8]; + f32 angle_vec_x; + f32 angle_vec_y; + f32 angle_speed; + f32 dist; + f32 dist_vec; + f32 dist_speed; + f32 acc_vertical_x; + f32 acc_vertical_y; u8 device_type; - u8 wpad_error; - u8 pos_valid; + s8 wpad_error; + s8 pos_valid; u8 format; union