SFML community forums

Help => General => Topic started by: joi on September 13, 2016, 01:06:50 am

Title: Mouse always return 0,0
Post by: joi 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)
Title: AW: Mouse always return 0,0
Post by: eXpl0it3r 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?
Title: Re: Mouse always return 0,0
Post by: joi 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
Title: AW: Mouse always return 0,0
Post by: eXpl0it3r on September 13, 2016, 01:55:08 am
What's the complete but minimal code you're using?