diff -p -up imwheel/util.c.pix imwheel/util.c --- imwheel/util.c.pix 2008-01-14 08:16:58.000000000 +0000 +++ imwheel/util.c 2008-01-14 08:46:46.000000000 +0000 @@ -889,6 +889,18 @@ struct WinAction *getRC(void) newwa[num_wa-1].button=PRIORITY; newwa[num_wa-1].pri=pri; } + else if(!strncasecmp(line+1,"Buttons=",8)) + { + int j; + char *ButtonOpt = ButtonOpt = strtok(line+9, ","); + Printf("Buttons="); + for(j = 0; j < buttons_cnt; j++) { + buttons[j] = ButtonOpt ? atoi(ButtonOpt) : 0; + if (ButtonOpt) ButtonOpt = strtok(NULL, ","); + Printf("%d ", buttons[j]); + } + Printf("\n"); + } else exitString("Unrecognized command : \"%s\"\n",line+1); continue;