ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Go to the source code of this file.
Functions | |
int | uinputopen (struct uinput_user_dev *indev, int mouse) |
int | os_inputopen (usbdevice *kb) |
os_inputopen More... | |
void | os_inputclose (usbdevice *kb) |
static void | isync (usbdevice *kb) |
void | os_keypress (usbdevice *kb, int scancode, int down) |
void | os_mousemove (usbdevice *kb, int x, int y) |
void * | _ledthread (void *ctx) |
int | os_setupindicators (usbdevice *kb) |
void* _ledthread | ( | void * | ctx | ) |
Definition at line 165 of file input_linux.c.
References dmutex, usbdevice::hw_ileds, usbdevice::uinput_kb, and usbdevice::vtable.
Referenced by os_setupindicators().
|
static |
Definition at line 107 of file input_linux.c.
References ckb_warn, usbdevice::uinput_kb, and usbdevice::uinput_mouse.
Referenced by os_keypress(), and os_mousemove().
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().
int uinputopen | ( | struct uinput_user_dev * | indev, |
int | mouse | ||
) |
Definition at line 9 of file input_linux.c.
References ckb_err, and ckb_warn.
Referenced by os_inputopen().