Repository navigation
Eglantine nx2 build 79 (c08864b)
Pre-releaseWhat this build fixes
A controller button no longer presses a second, unrelated input
SDL sends two events for every button and axis of a controller it has a mapping for: the joystick event, indexed by the raw input the mapping reads (b4, a2, …) — the index SDL_GetGamepadBindings hands the input system — and a gamepad event, indexed by the mapped element (SDL_GAMEPAD_BUTTON_LEFT_SHOULDER is 9, SDL_GAMEPAD_AXIS_LEFT_TRIGGER is 4, …). Since build 73 (#100) SDLDriver fed both of them into SetButton/SetAxis, which key their state by the raw joystick index, so every press and axis motion was recorded twice — the second time on whichever input happens to own that raw index.
- On an Xbox One pad under SDL, LB also held Back, Back also held L, Start also held the left-stick click, the left-stick click also held the right-stick click, RB also held Home and R3 also held Plus: pressing one button pressed another, and releasing the phantom one cleared it again.
- The left trigger also wrote raw axis 4, which is right-stick Y in SDL's Xbox mappings, so squeezing a trigger moved the right stick and releasing it reset that axis to neutral.
- Both gamepad cases are removed. Buttons and axes are now handled once, from the joystick events that carry the indices the binding table actually stores, whether or not the controller has an SDL mapping.
Everything else in this build is identical to build 77.
Automatic build of nx2 at c08864b.
Windows: extract the zip and run eglantine.exe, or eden-cli.exe from a terminal.
Linux: make the AppImage executable (chmod +x) and run it; it bundles its libraries and needs glibc 2.39 or newer (Ubuntu 24.04, Fedora 40, Debian 13, Arch).
The -pgo builds are the same programs compiled with profile-guided optimization (clang plus Eden's profile); prefer them when your CPU supports it. The Windows PGO build is a MinGW build, so it carries its own DLLs and needs no Visual C++ redistributable.