From bc0eea11f3cae086a6a4983fa86fad2dcc2b7a2e Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 8 Jun 2023 02:44:35 +0300 Subject: [PATCH] bdk: joycon: add calibration struct --- bdk/input/joycon.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bdk/input/joycon.h b/bdk/input/joycon.h index 6fa0881..cc1b19f 100644 --- a/bdk/input/joycon.h +++ b/bdk/input/joycon.h @@ -90,6 +90,16 @@ typedef struct _jc_gamepad_rpt_t jc_bt_conn_t bt_conn_r; } jc_gamepad_rpt_t; +typedef struct _jc_calib_t +{ + unsigned short x_max:12; + unsigned short y_max:12; + unsigned short x_center:12; + unsigned short y_center:12; + unsigned short x_min:12; + unsigned short y_min:12; +} __attribute__((packed)) jc_calib_t; + void jc_init_hw(); void jc_deinit(); jc_gamepad_rpt_t *joycon_poll();