diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-02-23 16:02:37 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-02-23 16:02:37 +0800 |
commit | 84f4ec0cf0cefda5e4fb0d71f3f86cbb9516319c (patch) | |
tree | ca301a8b495246c594a16a169cf888beee721557 | |
parent | af888366b38e9003a1cd25cdf510e695374e9409 (diff) | |
download | myoparasite-84f4ec0cf0cefda5e4fb0d71f3f86cbb9516319c.tar.gz myoparasite-84f4ec0cf0cefda5e4fb0d71f3f86cbb9516319c.tar.zst myoparasite-84f4ec0cf0cefda5e4fb0d71f3f86cbb9516319c.zip |
Remove unused code and move old code to a separate directory
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | click.c | 43 | ||||
-rw-r--r-- | old/code.py (renamed from code.py) | 0 | ||||
-rwxr-xr-x | old/mouse_action.py (renamed from mouse_action.py) | 0 | ||||
-rwxr-xr-x | old/myoparasite.py (renamed from myoparasite.py) | 0 |
5 files changed, 0 insertions, 45 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 1de52fc..0000000 --- a/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -all: click.c - gcc -o click -Dxdo_click=xdo_click_window click.c -lxdo diff --git a/click.c b/click.c deleted file mode 100644 index 9c418d4..0000000 --- a/click.c +++ /dev/null @@ -1,43 +0,0 @@ -#include <ctype.h> -#include <stdio.h> -#include <stdlib.h> -#include <sys/wait.h> -#include <unistd.h> -#include <xdo.h> - -int main () { - xdo_t* xdo = xdo_new (NULL); - if (xdo == NULL) { - perror ("xdo_new"); - return 1; - } - - int c; - while ((c = getchar ()) != EOF) { - int button = c - '0'; - if (!isdigit (c)) { - continue; - } - xdo_click (xdo, CURRENTWINDOW, button); - } - - return 0; -} - -// static xdo_t *xdo = NULL; -// -// int myoparasite_mouse_init (void) { -// xdo = xdo_new (NULL); -// if (xdo == NULL) { -// return -1; -// } -// return 0; -// } -// -// void myoparasite_mouse_click (int action) { -// switch (action) { -// case 1: case 2: case 3: case 4: case 5: -// xdo_click (xdo, CURRENTWINDOW, button); -// break; -// } -// } diff --git a/mouse_action.py b/old/mouse_action.py index bcd48a1..bcd48a1 100755 --- a/mouse_action.py +++ b/old/mouse_action.py diff --git a/myoparasite.py b/old/myoparasite.py index 14b300f..14b300f 100755 --- a/myoparasite.py +++ b/old/myoparasite.py |