Added driver interface for motionsync/anglesnap

master
vhaudiquet 1 year ago
parent c535c91a48
commit e5cd168c18
  1. 8
      README.md
  2. 4
      src/device/driver_interface.h

@ -20,11 +20,11 @@ char* driver_get_manufacturer(void* handle); // Returns manufacturer name
* Mouse drivers
*
* - DPI Levels: max levels, level info (dpi + led), level count, current level
* - Debounce time : possible values, current value
* - Motion sync
* - Lift off distance : possible values, current value
* - Angle snap
* - Polling rate : possible values, current value
* - Debounce time : possible values, current value
* - Lift off distance : possible values, current value
* - LED (color/effect/status)
*/
struct MOUSE_DPI_LEVELS
@ -43,7 +43,9 @@ struct MOUSE_DPI_LEVELS
unsigned char b;
} level[];
};
struct MOUSE_DPI_LEVELS driver_mouse_dpi_get(void* handle);
int driver_mouse_dpi_get(void* handle, struct MOUSE_DPI_LEVELS* output);
int driver_mouse_motion_sync_get(void* handle, bool* output);
int driver_mouse_angle_snap_get(void* handle, bool* output);
/*
* Wireless driver

@ -38,4 +38,8 @@ struct MOUSE_DPI_LEVELS
};
int driver_mouse_dpi_get(void* handle, struct MOUSE_DPI_LEVELS* output);
int driver_mouse_motion_sync_get(void* handle, bool* output);
int driver_mouse_angle_snap_get(void* handle, bool* output);
#endif
Loading…
Cancel
Save