ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Go to the source code of this file.
Functions | |
int | updatergb_kb (usbdevice *kb, int force) |
int | updatergb_mouse (usbdevice *kb, int force) |
int | savergb_kb (usbdevice *kb, lighting *light, int mode) |
int | savergb_mouse (usbdevice *kb, lighting *light, int mode) |
int | loadrgb_kb (usbdevice *kb, lighting *light, int mode) |
int | loadrgb_mouse (usbdevice *kb, lighting *light, int mode) |
char * | printrgb (const lighting *light, const usbdevice *kb) |
void | cmd_rgb (usbdevice *kb, usbmode *mode, int dummy, int keyindex, const char *code) |
void | cmd_ioff (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *led) |
void | cmd_ion (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *led) |
void | cmd_iauto (usbdevice *kb, usbmode *mode, int dummy1, int dummy2, const char *led) |
void | cmd_inotify (usbdevice *kb, usbmode *mode, int nnumber, int dummy, const char *led) |
Definition at line 63 of file led.c.
References usbmode::ioff, usbmode::ion, iselect(), and usbdevice::vtable.
Definition at line 74 of file led.c.
References usbmode::inotify, and iselect().
Definition at line 41 of file led.c.
References usbmode::ioff, usbmode::ion, iselect(), and usbdevice::vtable.
Definition at line 52 of file led.c.
References usbmode::ioff, usbmode::ion, iselect(), and usbdevice::vtable.
Definition at line 6 of file led.c.
References lighting::b, lighting::g, keymap, key::led, usbmode::light, lighting::r, and lighting::sidelight.
Since Firmware Version 2.05 for K95RGB the answers for getting the stored color-maps from the hardware has changed a bit. So comparing for the correct answer cannot validate against the cmd, and has to be done against a third map. Up to now we know, that K70RGB Pro and K70 Lux RGB have firmware version 2.04 and having the problem also. So we have to determine in the most inner loop the firmware version and type of KB to select the correct compare-table.
Read colors
< That is the old comparison method: you get back what you sent.
Normally a firmware version >= 2.05 runs with the new compare array. Up to now there is a 2.04 running in K70 RGB Lux with the same behavior. It seems that K70RGB has the same problem
Definition at line 190 of file led_keyboard.c.
References lighting::b, ckb_err, usbdevice::fwversion, lighting::g, IS_V2_OVERRIDE, MSG_SIZE, N_KEYS_HW, P_K70_LUX, P_K70_LUX_NRGB, usbdevice::product, lighting::r, usbrecv, and usbsend.
Referenced by hwloadmode().
Definition at line 87 of file led_mouse.c.
References lighting::b, ckb_err, lighting::g, IS_SABRE, IS_SCIMITAR, LED_DPI, LED_MOUSE, MSG_SIZE, lighting::r, and usbrecv.
Referenced by cmd_hwload_mouse().
Definition at line 120 of file led.c.
References lighting::b, lighting::g, has_key(), keymap, key::led, N_KEYS_EXTENDED, key::name, and lighting::r.
Referenced by _cmd_get().
Definition at line 148 of file led_keyboard.c.
References usbdevice::dither, usbdevice::fwversion, IS_STRAFE, IS_V2_OVERRIDE, makergb_512(), makergb_full(), MSG_SIZE, ordered8to3(), quantize8to3(), and usbsend.
Referenced by cmd_hwsave_kb().
Definition at line 66 of file led_mouse.c.
References lighting::b, lighting::g, IS_SABRE, IS_SCIMITAR, LED_DPI, LED_MOUSE, MSG_SIZE, lighting::r, and usbsend.
Referenced by cmd_hwsave_mouse().
int updatergb_kb | ( | usbdevice * | kb, |
int | force | ||
) |
Definition at line 79 of file led_keyboard.c.
References usbdevice::active, usbprofile::currentmode, usbdevice::dither, lighting::forceupdate, IS_FULLRANGE, usbprofile::lastlight, usbmode::light, makergb_512(), makergb_full(), MSG_SIZE, ordered8to3(), P_K95_PLATINUM, usbdevice::product, usbdevice::profile, quantize8to3(), rgbcmp(), lighting::sidelight, and usbsend.
int updatergb_mouse | ( | usbdevice * | kb, |
int | force | ||
) |
Definition at line 20 of file led_mouse.c.
References usbdevice::active, lighting::b, usbprofile::currentmode, lighting::forceupdate, lighting::g, IS_GLAIVE, isblack(), usbprofile::lastlight, LED_MOUSE, usbmode::light, MSG_SIZE, N_MOUSE_ZONES, usbdevice::profile, lighting::r, rgbcmp(), and usbsend.