This commit is contained in:
Denis 2024-01-06 02:34:37 +01:00
parent 479b671733
commit 6edf68376d
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -1476,7 +1476,7 @@ void virt_dualsense_compose(virt_dualsense_t *const gamepad, gamepad_status_t *c
} else {
out_shifted_buf[3] = ((uint64_t)(joint_x + (int64_t)32768) >> (uint64_t)8);
}
printf("%ld -> %d\n", joint_x, (int)out_shifted_buf[3]);
if (joint_y <= (int64_t)(-32768)) {
out_shifted_buf[4] = 0x00;
} else if (joint_y >= (int64_t)(+32767)) {