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 |
Macros | |
#define | NONE -1.f |
#define | HOLD -2.f |
Functions | |
void | ckb_info () |
void | ckb_init (ckb_runctx *context) |
void | ckb_parameter (ckb_runctx *context, const char *name, const char *value) |
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 | kphold = 0 |
int | kprelease = 0 |
int | randomize = 0 |
struct keyAnim * | anim |
struct keyAnim |
#define HOLD -2.f |
Definition at line 45 of file main.c.
Referenced by ckb_frame(), and ckb_keypress().
#define NONE -1.f |
Definition at line 44 of file main.c.
Referenced by ckb_init(), ckb_keypress(), and ckb_start().
int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 137 of file main.c.
References ckb_key::a, animcolor, ckb_key::b, ckb_grad_color(), ckb_key::g, keyAnim::gradient, HOLD, ckb_runctx::keycount, ckb_runctx::keys, phase, ckb_key::r, randomize, and keyAnim::target.
void ckb_info | ( | ) |
Definition at line 5 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_NAME, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_AGRADIENT, CKB_PARAM_BOOL, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_TIME_DURATION, CKB_TIMEMODE, CKB_VERSION, and TRUE.
Referenced by main(), and quitWithLock().
void ckb_init | ( | ckb_runctx * | context | ) |
void ckb_keypress | ( | ckb_runctx * | context, |
ckb_key * | key, | ||
int | x, | ||
int | y, | ||
int | state | ||
) |
Definition at line 75 of file main.c.
References ckb_gradient::a, ckb_gradient::b, ckb_grad_color(), ckb_gradient::g, keyAnim::gradient, HOLD, ckb_runctx::keys, kphold, kprelease, NONE, ckb_gradient::ptcount, ckb_gradient::pts, ckb_gradient::r, randomize, and keyAnim::target.
void ckb_parameter | ( | ckb_runctx * | context, |
const char * | name, | ||
const char * | value | ||
) |
Definition at line 68 of file main.c.
References CKB_PARSE_AGRADIENT, CKB_PARSE_BOOL, kphold, kprelease, and randomize.
void ckb_start | ( | ckb_runctx * | context, |
int | state | ||
) |
void ckb_time | ( | ckb_runctx * | context, |
double | delta | ||
) |
struct keyAnim* anim |
Definition at line 55 of file main.c.
Referenced by KbLight::addAnim(), anim_add(), anim_remove(), KbLight::animKeypress(), RebindWidget::applyChanges(), ckb_frame(), ckb_time(), KbLight::close(), KbLight::duplicateAnim(), KbLight::findAnim(), KbLight::frameUpdate(), KeyAction::keyEvent(), KbLight::load(), KbLight::map(), KbLight::needsSave(), KbMode::newId(), KbAnimWidget::on_animList_itemChanged(), KbLight::open(), KbLight::previewAnim(), KbAnimWidget::refreshList(), KbAnimWidget::reorderAnims(), KbLight::restartAnimation(), KbLight::save(), and RebindWidget::setSelection().
ckb_gradient animcolor = { 0 } |
Definition at line 52 of file main.c.
Referenced by ckb_frame().
int kphold = 0 |
Definition at line 53 of file main.c.
Referenced by ckb_keypress(), and ckb_parameter().
int kprelease = 0 |
Definition at line 53 of file main.c.
Referenced by ckb_keypress(), ckb_parameter(), ckb_start(), and AnimScript::load().
int randomize = 0 |
Definition at line 53 of file main.c.
Referenced by ckb_frame(), ckb_keypress(), and ckb_parameter().