Merge branch 'alpha0.2.2.le1-daemononly' of https://github.com/frickler24/ckb into testing

This commit is contained in:
ccMSC
2015-12-14 21:18:27 -07:00
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -49,6 +49,7 @@ const devcmd vtable_keyboard = {
.bind = cmd_bind,
.unbind = cmd_unbind,
.rebind = cmd_rebind,
.macro = cmd_macro,
.dpi = cmd_macro_none,
.dpisel = cmd_none,
+1 -1
View File
@@ -313,7 +313,7 @@ static void _cmd_macro(usbmode* mode, const char* keys, const char* assignment){
bind->macros = realloc(bind->macros, (bind->macrocap += 16) * sizeof(keymacro));
}
void cmd_macro(usbdevice* kb, usbmode* mode, const char* keys, const char* assignment){
void cmd_macro(usbdevice* kb, usbmode* mode, const int notifynumber, const char* keys, const char* assignment){
pthread_mutex_lock(imutex(kb));
_cmd_macro(mode, keys, assignment);
pthread_mutex_unlock(imutex(kb));
+1 -1
View File
@@ -27,7 +27,7 @@ void cmd_unbind(usbdevice* kb, usbmode* mode, int dummy, int keyindex, const cha
// Resets a key binding
void cmd_rebind(usbdevice* kb, usbmode* mode, int dummy, int keyindex, const char* ignored);
// Creates or updates a macro. Pass null strings to clear all macros
void cmd_macro(usbdevice* kb, usbmode* mode, const char* keys, const char* assignment);
void cmd_macro(usbdevice* kb, usbmode* mode, const int notifynumber, const char* keys, const char* assignment);
#ifdef OS_LINUX
// Is a key a modifier?