Welcome, Guest

Author Topic: How can I detect if the cursor is over my UI?  (Read 1301 times)

Nick

  • Administrator
  • *****
  • Posts: 475
    • View Profile
How can I detect if the cursor is over my UI?
« on: November 04, 2013, 12:30:38 PM »
First, you need to make sure that the View you created is transparent and you created it with the "Support Click Through" option turned on.

Then, you can use the View::IssueMouseOnUIQuery, View::FetchMouseOnUIQuery and View::IsMouseOnView APIs to issue a query, fetch it and check the result of the query, respectively.

Please check the documentation and the HUD sample for more details.
R&D Director @CoherentLabs

Tags: