We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Linux, Allegro may not detect initially connected joysticks if al_install_joystick() is called after changing the filesystem interface.
al_install_joystick()
Example
#include <stdio.h> #include <allegro5/allegro.h> #include <allegro5/allegro_physfs.h> #include <physfs.h> int main(int argc, char **argv) { al_init(); PHYSFS_init(argv[0]); al_set_physfs_file_interface(); // comment this line al_install_joystick(); int num_joysticks = al_get_num_joysticks(); printf("num_joysticks: %d\n", num_joysticks); PHYSFS_deinit(); return 0; }
Actual output (start the app with a connected joystick)
num_joysticks: 0
Expected output
num_joysticks: 1
The text was updated successfully, but these errors were encountered:
Linux: fix joystick initialization.
da54099
Make sure that we're using the stdio filesystem when scanning /dev/input. Fixes liballeg#1572.
a605aaa
Successfully merging a pull request may close this issue.
On Linux, Allegro may not detect initially connected joysticks if
al_install_joystick()
is called after changing the filesystem interface.Example
Actual output (start the app with a connected joystick)
Expected output
The text was updated successfully, but these errors were encountered: