![]() |
ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Include dependency graph for main.c:Go to the source code of this file.
Macros | |
| #define | ANIM_MAX (144 * 2) |
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 (float x, float y, float width, float height) |
| void | anim_remove (float x, float y) |
| 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 | |
| float | kbsize = 0.f |
| ckb_gradient | animcolor = { 0 } |
| int | symmetric = 0 |
| int | kprelease = 0 |
| int | randomize = 0 |
| double | animlength = 0. |
| double | x_offset = 0 |
| double | y_offset = 0 |
| struct { | |
| int | active |
| float | x |
| float | y |
| float | maxsize |
| float | cursize |
| float | choice |
| } | anim [(144 *2)] = { } |
| #define ANIM_MAX (144 * 2) |
Definition at line 75 of file main.c.
Referenced by anim_add(), anim_remove(), ckb_frame(), and ckb_time().
| void anim_add | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height | ||
| ) |
| int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 134 of file main.c.
References anim, ANIM_MAX, animlength, ckb_alpha_blend(), ckb_grad_color(), CKB_KEYCLEAR, ckb_runctx::keycount, ckb_runctx::keys, randomize, and symmetric.
Here is the call graph for this function:| void ckb_info | ( | ) |
Definition at line 5 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_PREEMPT, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_TIME_DURATION, CKB_TIMEMODE, CKB_VERSION, and TRUE.
| void ckb_init | ( | ckb_runctx * | context | ) |
| void ckb_keypress | ( | ckb_runctx * | context, |
| ckb_key * | key, | ||
| int | x, | ||
| int | y, | ||
| int | state | ||
| ) |
Definition at line 107 of file main.c.
References anim_add(), anim_remove(), ckb_runctx::height, kprelease, and ckb_runctx::width.
Here is the call graph for this function:| void ckb_parameter | ( | ckb_runctx * | context, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Definition at line 60 of file main.c.
References animlength, CKB_PARSE_AGRADIENT, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, ckb_runctx::height, kprelease, randomize, symmetric, ckb_runctx::width, x_offset, and y_offset.
| void ckb_start | ( | ckb_runctx * | context, |
| int | state | ||
| ) |
Definition at line 115 of file main.c.
References anim_add(), anim_remove(), ckb_runctx::height, ckb_runctx::width, x_offset, and y_offset.
Here is the call graph for this function:| void ckb_time | ( | ckb_runctx * | context, |
| double | delta | ||
| ) |
| struct { ... } anim[ (144 * 2) ] |
| ckb_gradient animcolor = { 0 } |
| float kbsize = 0.f |
Definition at line 49 of file main.c.
Referenced by ckb_init(), and ckb_time().