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

Author Topic: sf::Joystick::getIdentity() doesn't work on Linux  (Read 2141 times)

0 Members and 2 Guests are viewing this topic.

SiXoS

  • Newbie
  • *
  • Posts: 4
    • View Profile
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.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: sf::Joystick::getIdentity() doesn't work on Linux
« Reply #1 on: December 28, 2015, 11:33:29 am »
That's a linker error, you probably use an older binary. Make sure your entire SFML library is 2.3.2, not just the headers.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

SiXoS

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: sf::Joystick::getIdentity() doesn't work on Linux
« Reply #2 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?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: sf::Joystick::getIdentity() doesn't work on Linux
« Reply #3 on: December 28, 2015, 12:53:55 pm »
If you want to have the latest version, you could download SFML directly from the website or GitHub. The packages are not maintained by us, so it depends on the maintainers how up-to-date they are.

Make sure you remove any remnants of previous installations (e.g. in /usr/local) before proceeding.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything