1
Window / Re: Joystick enum Axis
« on: October 07, 2019, 06:56:34 pm »
Real-time check of axis position is done with Joystick::getAxisPosition.
Real-time check of button state is done with Joystick::isButtonPressed.
This is Specific. I can not see if ANY button/axis is registering a press, only a specific button/axis.
If I am updating to see if any button or axis is pressed, like sf::Event::JoystickButtonPressed, then there is a conflict as there is nothing in SFML to allow me to real time check this(Unless I am wrong). I can however check in real time if ANY axis/button is pressed by using the enum values, which as I said overlap. Simply starting axis enum at a higher number would fix this. I am not sure why nobody will answer my question asked so I will just do it and see.
Thank you anyway.
Real-time check of button state is done with Joystick::isButtonPressed.
This is Specific. I can not see if ANY button/axis is registering a press, only a specific button/axis.
If I am updating to see if any button or axis is pressed, like sf::Event::JoystickButtonPressed, then there is a conflict as there is nothing in SFML to allow me to real time check this(Unless I am wrong). I can however check in real time if ANY axis/button is pressed by using the enum values, which as I said overlap. Simply starting axis enum at a higher number would fix this. I am not sure why nobody will answer my question asked so I will just do it and see.
Thank you anyway.