From c400ee7d22367ac2d9a8a9c436a05db87b71e91f Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 2 Jan 2024 21:08:08 +0100 Subject: [PATCH] let's fix X alone --- virt_ds5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt_ds5.c b/virt_ds5.c index aaad393..7536cd4 100644 --- a/virt_ds5.c +++ b/virt_ds5.c @@ -1325,8 +1325,8 @@ void virt_dualsense_compose(virt_dualsense_t *const gamepad, gamepad_status_t *c // point of contact number 0 out_shifted_buf[33] = in_device_status->touchpad_touch_num == -1 ? 0x80 : 0x7F; //contact out_shifted_buf[34] = in_device_status->touchpad_x & (int16_t)0x00FF; //x_lo - out_shifted_buf[35] = (((in_device_status->touchpad_x & (int16_t)0x0F00) >> (int16_t)8) | ((in_device_status->touchpad_y & (int16_t)0x000F) << (int16_t)4)); // x_hi:4 y_lo:4 - out_shifted_buf[36] = ((in_device_status->touchpad_y & (int16_t)0x0FF0) >> (int16_t)4); //y_hi + out_shifted_buf[35] = (((in_device_status->touchpad_x & (int16_t)0x0F00) >> (int16_t)8) /*| ((in_device_status->touchpad_y & (int16_t)0x000F) << (int16_t)4)*/); // x_hi:4 y_lo:4 + out_shifted_buf[36] = 0 /*((in_device_status->touchpad_y & (int16_t)0x0FF0) >> (int16_t)4)*/; //y_hi // point of contact number 1 out_shifted_buf[37] = 0x80; //contact