ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Go to the source code of this file.
Data Structures | |
struct | keyanim |
Functions | |
void | ckb_info () |
void | ckb_init (ckb_runctx *context) |
void | ckb_parameter (ckb_runctx *context, const char *name, const char *value) |
void | anim_add (int index) |
void | anim_remove (int index) |
void | ckb_keypress (ckb_runctx *context, ckb_key *key, int x, int y, int state) |
void | ckb_start (ckb_runctx *context, int state) |
void | ckb_time (ckb_runctx *context, double delta) |
int | ckb_frame (ckb_runctx *context) |
Variables | |
ckb_gradient | animcolor = { 0 } |
int | randomBright = 0 |
long | ffade = 30 |
double | pressestofull = 10.f |
keyanim * | anims = NULL |
struct keyanim |
void anim_add | ( | int | index | ) |
Definition at line 81 of file main.c.
References ffade, keyanim::pressed, keyanim::timing, and keyanim::usages.
Referenced by ckb_keypress(), and ckb_start().
void anim_remove | ( | int | index | ) |
Definition at line 87 of file main.c.
References keyanim::pressed.
Referenced by ckb_keypress(), and ckb_start().
int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 117 of file main.c.
References ckb_alpha_blend(), ckb_grad_color(), CKB_KEYCLEAR, ffade, ckb_runctx::keycount, ckb_runctx::keys, pressestofull, and randomBright.
void ckb_info | ( | ) |
Definition at line 20 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_POSITION, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_AGRADIENT, CKB_PARAM_BOOL, CKB_PARAM_DOUBLE, CKB_PARAM_LONG, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_REPEAT, CKB_TIME_ABSOLUTE, CKB_TIMEMODE, CKB_VERSION, FALSE, and TRUE.
void ckb_init | ( | ckb_runctx * | context | ) |
Definition at line 66 of file main.c.
References ckb_runctx::keycount, ckb_runctx::keys, keyanim::x, ckb_key::x, keyanim::y, and ckb_key::y.
void ckb_keypress | ( | ckb_runctx * | context, |
ckb_key * | key, | ||
int | x, | ||
int | y, | ||
int | state | ||
) |
Definition at line 91 of file main.c.
References anim_add(), anim_remove(), and ckb_runctx::keys.
void ckb_parameter | ( | ckb_runctx * | context, |
const char * | name, | ||
const char * | value | ||
) |
Definition at line 74 of file main.c.
References CKB_PARSE_AGRADIENT, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, CKB_PARSE_LONG, ffade, pressestofull, and randomBright.
void ckb_start | ( | ckb_runctx * | context, |
int | state | ||
) |
void ckb_time | ( | ckb_runctx * | context, |
double | delta | ||
) |
Definition at line 103 of file main.c.
References ckb_runctx::keycount, keyanim::timing, and keyanim::usages.
ckb_gradient animcolor = { 0 } |
long ffade = 30 |
Definition at line 53 of file main.c.
Referenced by anim_add(), ckb_frame(), and ckb_parameter().
double pressestofull = 10.f |
Definition at line 54 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
int randomBright = 0 |
Definition at line 52 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().