QtWindowUtilities_win.cpp 551 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzCore/PlatformIncl.h>
  9. #include <QCursor>
  10. #include <AzQtComponents/Utilities/QtWindowUtilities.h>
  11. namespace AzQtComponents
  12. {
  13. MappedPoint MappedCursorPosition()
  14. {
  15. POINT point;
  16. GetCursorPos(&point);
  17. return { { point.x, point.y }, QCursor::pos() };
  18. }
  19. } // namespace AzQtComponents