Lines Matching defs:percent
35 " -a, --appswitch appswitch event percent\n"
39 " -t, --touch touch event percent\n"
43 " -m, --mouse mouse event percent\n"
44 " -k, --keyboard keyboard event percent\n"
45 " -H, --hardkey hardkey event percent\n"
46 " -S, --swap swap event percent\n"
48 " -C, --component component event percent\n"
49 " -r, --rotate rotate event percent\n"
66 {"appswitch", required_argument, nullptr, 'a'}, // switch app percent
67 {"keyboard", required_argument, nullptr, 'k'}, // keyboard percent
68 {"mouse", required_argument, nullptr, 'm'}, // mouse percent
69 {"touch", required_argument, nullptr, 't'}, // touch percent
70 {"swap", required_argument, nullptr, 'S'}, // swap percent
71 {"hardkey", required_argument, nullptr, 'H'}, // hardkey percent
74 {"rotate", required_argument, nullptr, 'r'}, // rotate percent
86 * WuKong default input action percent.
155 // check argument percent, and set last default percent.
163 // check the sum percent more than 100%, and exit wukong.
170 // sum the last default percent for calculate last percent.
196 // init event list percent.
233 float percent = 0.0;
235 percent = std::stof(optarg);
236 if ((it->first) == ROTATE && percent == 1) {
248 if (percent > 1 || percent < 0) {
249 shellcommand_.ResultReceiverAppend("the input percent more than 1 (100%).\n");
255 inputPercent_[inputType] = (int)(percent * ONE_HUNDRED_PERCENT);