At the moment, I am handling every event with only the mouse. Including button clicks, hover in, out etc.
I was wondering if it is possible to treat the joystick as a second mouse: if the analog moves, so does the mouse cursor. Is there a way to do so?
Another possible approach I though: create a gameobject with the resemblence of a mouse cursor and move it alongside either mouse input or joystick input. But, in this case, what happens to my events? How would I translate
if (event.mouseButton.button == sf::Mouse::Right)
?
I'm open to suggestions.
Thanks in advance.