driver fix g-wolves

master
vhaudiquet 10 months ago
parent bd42c93fa2
commit f37d42263e
  1. 8
      drivers/g-wolves/g-wolves.c

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

Loading…
Cancel
Save