Please try starting Steam with SDL_VIDEODRIVER=wayland not set, for example env -u SDL_VIDEODRIVER steam or unset SDL_VIDEODRIVER; steam, or put env -u SDL_VIDEODRIVER %command% in a game's launch options. Or, you could force the use of the default X11 driver: SDL_VIDEODRIVER=x11 s...
Reproduction case follows. Replacing the first line withSDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);allows all buttons and axes to generate events. #include<SDL2/SDL.h>intmain(intargc,char*argv[]) {SDL_Init(SDL_INIT_JOYSTICK);SDL_JoystickOpen(0);SDL_Eventevent;while(SDL_WaitEvent(&even...
GLFW链接,未定义对init的引用 GLFW是一个开源的跨平台的窗口管理库,用于创建和管理窗口、处理用户输入、以及与图形API交互。它提供了一个简单易用的接口,适用于OpenGL和Vulkan等图形库的开发。 GLFW的主要特点包括: 跨平台支持:GLFW可以在多个操作系统上运行,包括Windows、MacOS和Linux等。 窗口管理:GLFW提供了创建窗口...