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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SiXoS

Pages: [1]
1
Window / Re: Setting the mouse position relative to window position
« on: January 13, 2016, 02:28:50 pm »
Ok, I was actually wrong. The setMousePosition does work correctly. What caused an error was that in a different spot I used the x and y value from getPosition. And i assumed the same point was used to set the mouse position.

So I now have a new question: Can I get the position of the render area?

2
Window / Setting the mouse position relative to window position
« on: January 13, 2016, 02:00:50 pm »
I'm using linux and I'm trying to set the mouse cursor position in relation to the window position but the position returned by the window is wrong. The position returned is 10 pixels above and 10 pixels to the left of the actual window corner. This wouldn't be a problem if you could get the whole window size (not just the rendering size) as you would then calculate the difference in rendering/window size and adjust the position.

However this doesn't change the fact that Mouse::setPosition (const Vector2i &position, const Window &relativeTo) is useless. It doesn't do what it's supposed to do and even though i have not tried it, my guess would be that this behaves differently in different operating systems which makes it even more useless.

So. Have I missed something that would make it possible to set the mouse position in relation to the rendering surface position? Otherwise I'm gonna publish an issue on this.

3
Window / Re: sf::Joystick::getIdentity() doesn't work on Linux
« on: December 28, 2015, 12:40:40 pm »
I have the latest apt-get version, i don't know which one that is. How can I install a newer version if that isn't up to date?

4
Window / sf::Joystick::getIdentity() doesn't work on Linux
« on: December 28, 2015, 11:23:31 am »
When i tried to call the getIdentity method i got a compilation error that the function doesn't exist (unreferenced error). I can use all the other joystick related functions without a problem. The version I'm using is 2.3.2 and i can find the function in Joystick.hpp so why doesn't it work.

Pages: [1]