Searched refs:mouseEventPoint (Results 1 – 2 of 2) sorted by relevance
455 OH_NativeXComponent_MouseEvent mouseEventPoint; in HandleMouseEvent() local456 mouseEventPoint.x = event.GetOffset().GetX() - GetCoordinatePoint().GetX(); in HandleMouseEvent()457 mouseEventPoint.y = event.GetOffset().GetY() - GetCoordinatePoint().GetY(); in HandleMouseEvent()458 mouseEventPoint.screenX = event.GetOffset().GetX(); in HandleMouseEvent()459 mouseEventPoint.screenY = event.GetOffset().GetY(); in HandleMouseEvent()462 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_PRESS; in HandleMouseEvent()468 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_MOVE; in HandleMouseEvent()471 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE; in HandleMouseEvent()476 … mouseEventPoint.button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_LEFT_BUTTON; in HandleMouseEvent()494 mouseEventPoint.timestamp = event.time.time_since_epoch().count(); in HandleMouseEvent()[all …]
1125 OH_NativeXComponent_MouseEvent mouseEventPoint; in HandleMouseEvent() local1126 mouseEventPoint.x = static_cast<float>(info.GetLocalLocation().GetX()); in HandleMouseEvent()1127 mouseEventPoint.y = static_cast<float>(info.GetLocalLocation().GetY()); in HandleMouseEvent()1128 mouseEventPoint.screenX = static_cast<float>(info.GetScreenLocation().GetX()); in HandleMouseEvent()1129 mouseEventPoint.screenY = static_cast<float>(info.GetScreenLocation().GetY()); in HandleMouseEvent()1132 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_PRESS; in HandleMouseEvent()1138 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_MOVE; in HandleMouseEvent()1141 … mouseEventPoint.action = OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONE; in HandleMouseEvent()1146 … mouseEventPoint.button = OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_LEFT_BUTTON; in HandleMouseEvent()1164 mouseEventPoint.timestamp = info.GetTimeStamp().time_since_epoch().count(); in HandleMouseEvent()[all …]