Remove the finger emulation for m1m2
This commit is contained in:
parent
2c3d7de0e4
commit
4b6183eeb6
1 changed files with 1 additions and 1 deletions
|
|
@ -1318,7 +1318,7 @@ void virt_dualsense_compose(virt_dualsense_t *const gamepad, gamepad_status_t *c
|
|||
memcpy(&out_shifted_buf[28], ×tamp, sizeof(timestamp));
|
||||
|
||||
// point of contact number 0
|
||||
out_shifted_buf[33] = ((in_device_status->touchpad_touch_num == -1) && (!in_device_status->touchpad_press)) ? 0x80 : 0x7F; //contact
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue