diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hackvr.c | 9 |
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) { |