Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML 1.6 Mouse Coords Conversion  (Read 1297 times)

0 Members and 1 Guest are viewing this topic.

Joshua Flynn

  • Full Member
  • ***
  • Posts: 133
    • View Profile
SFML 1.6 Mouse Coords Conversion
« on: August 31, 2012, 01:21:52 am »
I know 1.6 is 'old school', no worries. I'm aware there are some conversion issues between render window and the mouse coords if render window is resized.

Let's say I have an (invisible to the user) square/rectangular area within the screen, where if the user clicks within the area something happens. What is the best way to implement this so that, if a user resizes the screen, the area checking between both the square/rectangular area and the mouses coords is consistent regardless of how the window is resized? What SFML classes should I use for this?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 1.6 Mouse Coords Conversion
« Reply #1 on: August 31, 2012, 10:28:19 am »
window.ConvertCoords
Laurent Gomila - SFML developer

 

anything