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

Author Topic: Mouse::setPosition problem with View  (Read 5423 times)

0 Members and 1 Guest are viewing this topic.

monkey3

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Mouse::setPosition problem with View
« Reply #15 on: October 06, 2015, 05:20:35 pm »
Yes I did.

monkey3

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Mouse::setPosition problem with View
« Reply #16 on: October 07, 2015, 02:30:57 pm »
Hi again.
Ive prepeared a visual for problem.



The problem is object.position != Window.mapPixelToCoords(Mouse::getPosition(Window),Window.getView())

Or is this a problem?

How can I make this equality true?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Mouse::setPosition problem with View
« Reply #17 on: October 07, 2015, 03:06:55 pm »
Write a complete and minimal code example that shows the problem so we can all test it.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

monkey3

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: Mouse::setPosition problem with View
« Reply #18 on: October 07, 2015, 07:29:31 pm »
Very good idea. I write a minimal code and it worked fine. And then I looked my main code confidently and I noticed problem's source. Maybe. Actually I dont understand exactly why it did not work but I make little changes then it worked.

Thanks for everyone's attention.