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 | parameter |
struct parameter contains the values for a fresh started macro_play thread. parameter_t is the typedef for it. More... | |
struct | ptlist |
struct ptlist is one element in the single linked list to store macro_play threads waiting for their execution ptlist_t is the typedef for it. More... | |
Macros | |
#define | IS_MOD(s) ((s) == KEY_CAPSLOCK || (s) == KEY_NUMLOCK || (s) == KEY_SCROLLLOCK || (s) == KEY_LEFTSHIFT || (s) == KEY_RIGHTSHIFT || (s) == KEY_LEFTCTRL || (s) == KEY_RIGHTCTRL || (s) == KEY_LEFTMETA || (s) == KEY_RIGHTMETA || (s) == KEY_LEFTALT || (s) == KEY_RIGHTALT || (s) == KEY_FN) |
Typedefs | |
typedef struct parameter | parameter_t |
struct parameter contains the values for a fresh started macro_play thread. parameter_t is the typedef for it. More... | |
typedef struct ptlist | ptlist_t |
struct ptlist is one element in the single linked list to store macro_play threads waiting for their execution ptlist_t is the typedef for it. More... | |
Functions | |
int | os_inputopen (usbdevice *kb) |
os_inputopen More... | |
void | os_inputclose (usbdevice *kb) |
void | inputupdate (usbdevice *kb) |
void | updateindicators_kb (usbdevice *kb, int force) |
void | initbind (binding *bind) |
void | freebind (binding *bind) |
void | cmd_bind (usbdevice *kb, usbmode *mode, int dummy, int keyindex, const char *to) |
void | cmd_unbind (usbdevice *kb, usbmode *mode, int dummy, int keyindex, const char *ignored) |
void | cmd_rebind (usbdevice *kb, usbmode *mode, int dummy, int keyindex, const char *ignored) |
void | cmd_macro (usbdevice *kb, usbmode *mode, const int notifynumber, const char *keys, const char *assignment) |
void | os_keypress (usbdevice *kb, int scancode, int down) |
void | os_mousemove (usbdevice *kb, int x, int y) |
int | os_setupindicators (usbdevice *kb) |
struct parameter |
struct ptlist |
#define IS_MOD | ( | s | ) | ((s) == KEY_CAPSLOCK || (s) == KEY_NUMLOCK || (s) == KEY_SCROLLLOCK || (s) == KEY_LEFTSHIFT || (s) == KEY_RIGHTSHIFT || (s) == KEY_LEFTCTRL || (s) == KEY_RIGHTCTRL || (s) == KEY_LEFTMETA || (s) == KEY_RIGHTMETA || (s) == KEY_LEFTALT || (s) == KEY_RIGHTALT || (s) == KEY_FN) |
Definition at line 34 of file input.h.
Referenced by inputupdate_keys().
typedef struct parameter parameter_t |
Definition at line 307 of file input.c.
References binding::base, usbmode::bind, imutex, keymap, N_KEYS_INPUT, and key::scan.
void cmd_macro | ( | usbdevice * | kb, |
usbmode * | mode, | ||
const int | notifynumber, | ||
const char * | keys, | ||
const char * | assignment | ||
) |
Definition at line 475 of file input.c.
References _cmd_macro(), and imutex.
Definition at line 342 of file input.c.
References binding::base, usbmode::bind, imutex, keymap, N_KEYS_INPUT, and key::scan.
Definition at line 331 of file input.c.
References binding::base, usbmode::bind, imutex, KEY_UNBOUND, and N_KEYS_INPUT.
void freebind | ( | binding * | bind | ) |
Definition at line 300 of file input.c.
References keymacro::actions, binding::macrocount, and binding::macros.
Referenced by freemode().
void initbind | ( | binding * | bind | ) |
Definition at line 292 of file input.c.
References binding::base, keymap, binding::macrocap, binding::macrocount, binding::macros, N_KEYS_INPUT, and key::scan.
Referenced by initmode().
void inputupdate | ( | usbdevice * | kb | ) |
Definition at line 241 of file input.c.
References usbdevice::input, inputupdate_keys(), os_mousemove(), usbdevice::profile, usbinput::rel_x, usbinput::rel_y, usbdevice::uinput_kb, and usbdevice::uinput_mouse.
Referenced by os_inputmain(), setactive_kb(), and setactive_mouse().
void os_inputclose | ( | usbdevice * | kb | ) |
Definition at line 76 of file input_linux.c.
References ckb_warn, usbdevice::uinput_kb, and usbdevice::uinput_mouse.
Referenced by closeusb().
int os_inputopen | ( | usbdevice * | kb | ) |
kb |
Some tips on using uinput_user_dev in
Definition at line 55 of file input_linux.c.
References usbdevice::fwversion, INDEX_OF, keyboard, usbdevice::name, usbdevice::product, usbdevice::uinput_kb, usbdevice::uinput_mouse, uinputopen(), and usbdevice::vendor.
Referenced by _setupusb().
void os_keypress | ( | usbdevice * | kb, |
int | scancode, | ||
int | down | ||
) |
Definition at line 118 of file input_linux.c.
References BTN_WHEELDOWN, BTN_WHEELUP, ckb_warn, isync(), SCAN_MOUSE, usbdevice::uinput_kb, and usbdevice::uinput_mouse.
Referenced by inputupdate_keys(), and play_macro().
void os_mousemove | ( | usbdevice * | kb, |
int | x, | ||
int | y | ||
) |
Definition at line 143 of file input_linux.c.
References ckb_warn, isync(), usbdevice::uinput_mouse, x, and y.
Referenced by inputupdate(), and play_macro().
int os_setupindicators | ( | usbdevice * | kb | ) |
Definition at line 189 of file input_linux.c.
References _ledthread(), usbdevice::hw_ileds, usbdevice::hw_ileds_old, and usbdevice::ileds.
Referenced by _setupusb().
void updateindicators_kb | ( | usbdevice * | kb, |
int | force | ||
) |
Definition at line 261 of file input.c.
References usbdevice::active, usbprofile::currentmode, DELAY_SHORT, usbdevice::hw_ileds, usbdevice::hw_ileds_old, I_CAPS, I_NUM, I_SCROLL, usbdevice::ileds, usbmode::inotify, usbmode::ioff, usbmode::ion, nprintind(), os_sendindicators(), OUTFIFO_MAX, and usbdevice::profile.