In my C++ code the line
int controllerPresent = glfwJoystickPresent(GLFW_JOYSTICK_1);
causes the program to stop responding but cout << glfwJoystickPresent(GLFW_JOYSTICK_1);
doesn't. It returns then prints 0 as it should. Other commands like glfwSetInputMode(window,GLFW_CURSOR, GLFW_CURSUR_HIDDEN);
work fine. In the console it states "Process returned -1073741819 (0xC0000005)"
I am using Codeblocks 16.01 with GNU GCC Compiler with the linked libraries of glew32.lib, glew32s.lib, libglfw3.a, libglfwdll.a
User contributions licensed under CC BY-SA 3.0