summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-02-07 00:19:47 -0600
committerepoch <epoch@hacking.allowed.org>2018-02-07 00:19:47 -0600
commit10931750ab9a9a96c3eede85c83b6a420e75cf0e (patch)
tree42f9d69402a5b11447acec77f2b88e432004de4d
parentec824ed034d2de3d91db9768541efbe7803b9171 (diff)
downloadhackvr-10931750ab9a9a96c3eede85c83b6a420e75cf0e.tar.gz
hackvr-10931750ab9a9a96c3eede85c83b6a420e75cf0e.zip
added control command to change target of key press commands
-rw-r--r--src/hackvr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hackvr.c b/src/hackvr.c
index 40c6e30..da6292e 100644
--- a/src/hackvr.c
+++ b/src/hackvr.c
@@ -146,6 +146,7 @@ int load_stdin() {//this function returns -1 to quit, 0 to not ask for a redraw,
fprintf(stderr,"# deletegroup\n");
fprintf(stderr,"# assimilate\n");
fprintf(stderr,"# renamegroup\n");
+ fprintf(stderr,"# control name\n");
fprintf(stderr,"# dump\n");
fprintf(stderr,"# quit\n");
fprintf(stderr,"# set\n");
@@ -302,6 +303,14 @@ int load_stdin() {//this function returns -1 to quit, 0 to not ask for a redraw,
ret=1;
continue;
}
+ if(!strcmp(command,"control")) {//change what shape key commands affect.
+ if(len > 2) {
+ free(global.user);
+ global.user=strdup(a[2]); // :D
+ }
+ ret=0;//doesn't change anything yet...
+ continue;
+ }
if(!strcmp(command,"addshape")) {//need to add a grouprot with this.
if(len > 3) {
if(len != ((strtold(a[3],0)+(strtold(a[3],0)==1))*3)+4) {