From f37d42263ebe759197d24aec112ef43586e8cc92 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Wed, 22 Nov 2023 20:14:09 +0100 Subject: [PATCH] driver fix g-wolves --- drivers/g-wolves/g-wolves.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/g-wolves/g-wolves.c b/drivers/g-wolves/g-wolves.c index f7a39e4..aad35d4 100644 --- a/drivers/g-wolves/g-wolves.c +++ b/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; } -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; }