mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
setup ckb for client side macro managment (aplha)
This branch sets up the ckb client (and one addition in ckb-daemon) for self defined macros at nearly each key. With this enhancement the 18 G-Keys at the K95 can be used. It adds a new tab "macro" to the bind page as user interface and includes all changes and additions to run the new tab or do the communication with the daemon. This version 0.0.1 handles the key macros in their primary layer, so shift, alt, alt-Gr or meta keys are ignored. It it tested with a K95 RGB on linux (mint 17.1 and 17.2) on different machines.
This commit is contained in:
@@ -32,8 +32,10 @@ static void inputupdate_keys(usbdevice* kb){
|
||||
macroaction* action = macro->actions + a;
|
||||
if(action->rel_x != 0 || action->rel_y != 0)
|
||||
os_mousemove(kb, action->rel_x, action->rel_y);
|
||||
else
|
||||
else {
|
||||
os_keypress(kb, action->scan, action->down);
|
||||
if (a > 200) usleep (100); else if (a > 20) usleep(30);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <qdebug.h>
|
||||
#include "keyaction.h"
|
||||
#include "kb.h"
|
||||
#include "kbanim.h"
|
||||
@@ -9,7 +10,6 @@
|
||||
#ifdef USE_LIBX11
|
||||
#include <X11/Xlib.h>
|
||||
#endif
|
||||
#include <qdebug.h> // lae.
|
||||
|
||||
KeyAction::Type KeyAction::type() const {
|
||||
if(_value.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user