Searched refs:knuckleGesture (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/ |
H A D | key_command_handler_util.cpp | 692 bool IsPackageKnuckleGesture(const cJSON* jsonData, const std::string knuckleGesture, Ability &laun… in IsPackageKnuckleGesture() argument 694 cJSON *knuckleGestureData = cJSON_GetObjectItemCaseSensitive(jsonData, knuckleGesture.c_str()); in IsPackageKnuckleGesture() 711 …KnuckleGesture(const JsonParser &parser, const std::string ability, KnuckleGesture &knuckleGesture) in IsParseKnuckleGesture() argument 718 if (!IsPackageKnuckleGesture(jsonData, ability, knuckleGesture.ability)) { in IsParseKnuckleGesture() 725 float AbsDiff(KnuckleGesture knuckleGesture, const std::shared_ptr<PointerEvent> pointerEvent) in AbsDiff() argument 731 …return static_cast<float>(sqrt(pow(knuckleGesture.lastDownPointer.x - item.GetDisplayX(), POW_SQUA… in AbsDiff() 732 pow(knuckleGesture.lastDownPointer.y - item.GetDisplayY(), POW_SQUARE))); in AbsDiff()
|
H A D | key_command_handler.cpp | 414 KnuckleGesture &knuckleGesture, KnuckleType type) in KnuckleGestureProcessor() argument 418 if (knuckleGesture.lastPointerDownEvent == nullptr) { in KnuckleGestureProcessor() 420 knuckleGesture.lastPointerDownEvent = touchEvent; in KnuckleGestureProcessor() 428 knuckleGesture.downToPrevUpTime = intervalTime; in KnuckleGestureProcessor() 430 UpdateKnuckleGestureInfo(touchEvent, knuckleGesture); in KnuckleGestureProcessor() 443 LaunchAbility(knuckleGesture.ability, NO_DELAY); in KnuckleGestureProcessor() 445 knuckleGesture.state = true; in KnuckleGestureProcessor() 507 KnuckleGesture &knuckleGesture) in UpdateKnuckleGestureInfo() argument 512 knuckleGesture.lastDownPointer.x = item.GetDisplayX(); in UpdateKnuckleGestureInfo() 513 knuckleGesture.lastDownPointer.y = item.GetDisplayY(); in UpdateKnuckleGestureInfo() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/key_command/include/ |
H A D | key_command_handler_util.h | 138 bool IsPackageKnuckleGesture(const cJSON* jsonData, const std::string knuckleGesture, Ability &laun… 139 …nuckleGesture(const JsonParser &parser, const std::string ability, KnuckleGesture &knuckleGesture); 140 float AbsDiff(KnuckleGesture knuckleGesture, const std::shared_ptr<PointerEvent> pointerEvent);
|
H A D | key_command_handler.h | 292 KnuckleGesture &knuckleGesture, KnuckleType type); 293 …KnuckleGestureInfo(const std::shared_ptr<PointerEvent> touchEvent, KnuckleGesture &knuckleGesture);
|
/ohos5.0/foundation/multimodalinput/input/service/key_command/test/ |
H A D | key_command_handler_test.cpp | 862 KnuckleGesture knuckleGesture; variable 865 knuckleGesture.lastPointerDownEvent = touchEvent; 866 knuckleGesture.lastPointerUpTime = 10; 870 knuckleGesture, KnuckleType::KNUCKLE_TYPE_SINGLE));
|