|
|
|
@ -193,7 +193,7 @@ int driver_mouse_dpi_get(void* handle, libusb_device_handle* hand, struct MOUSE* |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int driver_mouse_motion_sync_get(void* handle, libusb_device_handle* hand, bool* output) |
|
|
|
|
int driver_mouse_motion_sync_get(void* handle, libusb_device_handle* hand, struct MOUSE* output) |
|
|
|
|
{ |
|
|
|
|
// Send command
|
|
|
|
|
struct REPORT_MOTION_SYNC report = {0}; |
|
|
|
@ -201,11 +201,11 @@ int driver_mouse_motion_sync_get(void* handle, libusb_device_handle* hand, bool* |
|
|
|
|
if(res <= 0) return -1; |
|
|
|
|
|
|
|
|
|
// Format output boolean
|
|
|
|
|
*output = report.motion_sync; |
|
|
|
|
output->motion_sync = report.motion_sync; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int driver_mouse_angle_snap_get(void* handle, libusb_device_handle* hand, bool* output) |
|
|
|
|
int driver_mouse_angle_snap_get(void* handle, libusb_device_handle* hand, struct MOUSE* output) |
|
|
|
|
{ |
|
|
|
|
// Send command
|
|
|
|
|
struct REPORT_ANGLE_SNAP report = {0}; |
|
|
|
@ -213,7 +213,7 @@ int driver_mouse_angle_snap_get(void* handle, libusb_device_handle* hand, bool* |
|
|
|
|
if(res <= 0) return -1; |
|
|
|
|
|
|
|
|
|
// Format output boolean
|
|
|
|
|
*output = report.angle_snap; |
|
|
|
|
output->angle_snap = report.angle_snap; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|