ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Go to the source code of this file.
Functions | |
int | updatedpi (usbdevice *kb, int force) |
int | savedpi (usbdevice *kb, dpiset *dpi, lighting *light) |
int | loaddpi (usbdevice *kb, dpiset *dpi, lighting *light) |
char * | printdpi (const dpiset *dpi, const usbdevice *kb) |
void | cmd_dpi (usbdevice *kb, usbmode *mode, int dummy, const char *stages, const char *values) |
void | cmd_dpisel (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *stage) |
void | cmd_lift (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *height) |
void | cmd_snap (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *enable) |
void cmd_dpi | ( | usbdevice * | kb, |
usbmode * | mode, | ||
int | dummy, | ||
const char * | stages, | ||
const char * | values | ||
) |
Definition at line 4 of file dpi.c.
References usbmode::dpi, DPI_COUNT, dpiset::enabled, left, dpiset::x, x, dpiset::y, and y.
Definition at line 222 of file dpi.c.
References lighting::b, ckb_err, dpiset::current, DPI_COUNT, dpiset::enabled, lighting::g, LED_MOUSE, dpiset::lift, LIFT_MAX, LIFT_MIN, MSG_SIZE, N_MOUSE_ZONES, lighting::r, dpiset::snap, usbrecv, dpiset::x, and dpiset::y.
Referenced by cmd_hwload_mouse().
Definition at line 84 of file dpi.c.
References _readlines_ctx::buffer, DPI_COUNT, dpiset::enabled, dpiset::x, and dpiset::y.
Referenced by _cmd_get().
Definition at line 194 of file dpi.c.
References lighting::b, dpiset::current, DPI_COUNT, dpiset::enabled, lighting::g, LED_MOUSE, dpiset::lift, MSG_SIZE, N_MOUSE_ZONES, lighting::r, dpiset::snap, usbsend, dpiset::x, and dpiset::y.
Referenced by cmd_hwsave_mouse().
int updatedpi | ( | usbdevice * | kb, |
int | force | ||
) |
Definition at line 106 of file dpi.c.
References usbdevice::active, dpiset::current, usbprofile::currentmode, usbmode::dpi, DPI_COUNT, dpiset::enabled, dpiset::forceupdate, usbprofile::lastdpi, dpiset::lift, MSG_SIZE, usbdevice::profile, dpiset::snap, usbsend, dpiset::x, and dpiset::y.