driver fix g-wolves
This commit is contained in:
parent
bd42c93fa2
commit
f37d42263e
@ -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…
x
Reference in New Issue
Block a user