Lines Matching defs:to
9 * Unless required by applicable law or agreed to in writing, software
46 "swipe/drag <from_x> <from_y> <to_x> <to_y> [velocity] velocity ranges from 200 to 40000, default 600\n"
47 "fling <from_x> <from_y> <to_x> <to_y> [velocity] velocity ranges from 200 to 40000, default 600\n"
49 "keyEvent <keyID_0> <keyID_1> [keyID_2] keyID_2 default to None \n"
59 static bool CreateFlingPoint(Point &to, Point &from, Point screenSize, Direction direction)
61 to = Point(screenSize.px_ / INDEX_TWO, screenSize.py_ / INDEX_TWO);
64 from.px_ = to.px_ - screenSize.px_ / INDEX_FOUR;
65 from.py_ = to.py_;
68 from.px_ = to.px_ + screenSize.px_ / INDEX_FOUR;
69 from.py_ = to.py_;
72 from.px_ = to.px_;
73 from.py_ = to.py_ - screenSize.py_ / INDEX_FOUR;
76 from.px_ = to.px_;
77 from.py_ = to.py_ + screenSize.py_ / INDEX_FOUR;
85 bool GetPoints(Point &to, Point &from, int32_t argc, char *argv[])
97 to = Point(to_x, to_y);
112 bool CheckStepLength(UiOpArgs &uiOpArgs, Point to, Point from, uint32_t stepLength)
114 const int32_t distanceX = to.px_ - from.px_;
115 const int32_t distanceY = to.py_ - from.py_;
131 Point to;
135 if (!CreateFlingPoint(to, from, screenSize, direction)) {
147 if (!GetPoints(to, from, argc, argv)) {
154 if (!CheckStepLength(uiOpArgs, to, from, stepLength)) {
164 auto touch = GenericSwipe(op, from, to);
177 Point to;
179 if (!GetPoints(to, from, argc, argv)) {
191 auto touch = GenericSwipe(op, from, to);