//To compile type this into a terminal (must have SDL and g++ installed) // g++ sdl_js_test.cpp -lSDL -o testJoystick #include #include using namespace std; int main() { SDL_Init(SDL_INIT_JOYSTICK); SDL_Joystick *joystick=SDL_JoystickOpen(0); cout << "SDL Version: " << SDL_MAJOR_VERSION << '.' << SDL_MINOR_VERSION << '.' << SDL_PATCHLEVEL << '\n'; cout << "Number of Axes: " <