Lines Matching defs:percent
34 " -a, --appswitch appswitch event percent\n"
38 " -t, --touch touch event percent\n"
42 " -m, --mouse mouse event percent\n"
43 " -k, --keyboard keyboard event percent\n"
44 " -H, --hardkey hardkey event percent\n"
45 " -S, --swap swap event percent\n"
47 " -C, --component component event percent\n"
48 " -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
87 * WuKong default input action percent.
167 // check argument percent, and set last default percent.
175 // check the sum percent more than 100%, and exit wukong.
182 // sum the last default percent for calculate last percent.
208 // init event list percent.
244 float percent = 0.0;
246 percent = std::stof(optarg);
247 if ((it->first) == ROTATE && percent == 1) {
259 if (percent > 1 || percent < 0) {
260 shellcommand_.ResultReceiverAppend("the input percent more than 1 (100%).\n");
266 inputPercent_[inputType] = (int)(percent * ONE_HUNDRED_PERCENT);