4
« on: September 21, 2009, 10:18:24 am »
Hi, I've been learning SFML for a short while now and I'm not sure how to use joysticks. There isn't much information for them on the website or wiki.
How do you query the available joysticks in SFML 1.5 (if possible)? Can SFML be used to detect if joysticks are plugged in/unplugged during runtime?
I notice there is a class called sf::priv::Joystick in the OS-specific joystick.hpp files, yet it is not used anywhere in the code apart from its declaration. Can I use that class or is it only partially implemented? If it is meant to be used, how do we use it? Also, what is the sf::priv namespace for?
Also can SFML support more than 2 joysticks? I know DirectInput supports more than 2 joysticks, but I'm not sure if it can be done using just win32 (or on other operating systems).
Sorry for all the questions and thanks for your time.