ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include "device.h"
#include "devnode.h"
#include "dpi.h"
#include "led.h"
#include "notify.h"
#include "profile.h"
Go to the source code of this file.
Macros | |
#define | HWMODE_OR_RETURN(kb, index) |
#define | HW_STANDARD |
Functions | |
void | nprintf (usbdevice *kb, int nodenumber, usbmode *mode, const char *format,...) |
void | nprintkey (usbdevice *kb, int nnumber, int keyindex, int down) |
void | nprintind (usbdevice *kb, int nnumber, int led, int on) |
void | cmd_notify (usbdevice *kb, usbmode *mode, int nnumber, int keyindex, const char *toggle) |
static void | _cmd_get (usbdevice *kb, usbmode *mode, int nnumber, const char *setting) |
void | cmd_get (usbdevice *kb, usbmode *mode, int nnumber, int dummy, const char *setting) |
int | restart () |
void | cmd_restart (usbdevice *kb, usbmode *mode, int nnumber, int dummy, const char *content) |
#define HW_STANDARD |
Definition at line 83 of file notify.c.
Referenced by _cmd_get().
#define HWMODE_OR_RETURN | ( | kb, | |
index | |||
) |
Definition at line 90 of file notify.c.
References dpiset::current, usbmode::dpi, hwprofile::dpi, gethwmodename(), gethwprofilename(), getid(), getmodename(), getprofilename(), usbdevice::hw, usbdevice::hw_ileds, HW_STANDARD, I_CAPS, I_NUM, I_SCROLL, usbmode::id, usbprofile::id, hwprofile::id, usbdevice::input, keymap, usbinput::keys, dpiset::lift, usbmode::light, hwprofile::light, usbid::modified, N_KEYS_INPUT, nprintf(), nprintind(), nprintkey(), printdpi(), printrgb(), usbdevice::profile, and dpiset::snap.
Referenced by cmd_get().
Definition at line 215 of file notify.c.
References _cmd_get(), and imutex.
Definition at line 61 of file notify.c.
References CLEAR_KEYBIT, imutex, N_KEYS_INPUT, usbmode::notify, and SET_KEYBIT.
Definition at line 8 of file notify.c.
References INDEX_OF, usbprofile::mode, usbdevice::outfifo, OUTFIFO_MAX, and usbdevice::profile.
Referenced by _cmd_get(), cmd_fwupdate(), cmd_restart(), fwupdate(), nprintind(), and nprintkey().
void nprintind | ( | usbdevice * | kb, |
int | nnumber, | ||
int | led, | ||
int | on | ||
) |
Definition at line 43 of file notify.c.
References I_CAPS, I_NUM, I_SCROLL, and nprintf().
Referenced by _cmd_get(), and updateindicators_kb().
void nprintkey | ( | usbdevice * | kb, |
int | nnumber, | ||
int | keyindex, | ||
int | down | ||
) |
Definition at line 35 of file notify.c.
References keymap, key::name, and nprintf().
Referenced by _cmd_get(), and inputupdate_keys().
int restart | ( | ) |
Definition at line 228 of file main.c.
References ckb_err, main(), main_ac, main_av, and quitWithLock().
Referenced by cmd_restart(), and main().