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

Author Topic: Mouse always return 0,0  (Read 996 times)

0 Members and 2 Guests are viewing this topic.

joi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Mouse always return 0,0
« on: September 13, 2016, 01:06:50 am »
Hi everybody, I have been trying to solve this issue and I dont get it. I'm using SFML 2.4 and when I use
sf::Mouse::getPosition(window).x)
or
sf::Mouse::getPosition().x)
or even
sf::Mouse::getPosition(window))

I always have the same result, 0.0000. I'll be very grateful if someone may help me.
(sorry my bad english,Im not native speaker)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Mouse always return 0,0
« Reply #1 on: September 13, 2016, 01:15:17 am »
Are you linking release libs (without -d suffix) in debug mode it debug libs (with -d suffix) in release mode?

What's your OS and compiler? Did you build SFML yourself? If not what package did you download?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

joi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Mouse always return 0,0
« Reply #2 on: September 13, 2016, 01:26:20 am »
I tried with and without -d on debug mode

OS, windows 7.
IDE codeblocks 16.01
compiler  GCC 4.9.2 TDM (SJLJ)(include it on codeblocks)
SFML 2.4 (dowloaded from sfml page for this compiler, not from github) 32-bits

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Mouse always return 0,0
« Reply #3 on: September 13, 2016, 01:55:08 am »
What's the complete but minimal code you're using?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/