Skip to content

Start the x86 Sound Blaster settings sentinel at -1 - #630

Merged
tonioni merged 1 commit into
tonioni:masterfrom
midwan:fix/86box-sb-config-sentinel
Nov 3, 2026
Merged

tonioni merged 1 commit into
tonioni:masterfrom
midwan:fix/86box-sb-config-sentinel

Conversation

@midwan

@midwan midwan commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

x86_global_settings is static and started at 0, and set_sb_emu() returns before assigning it when no Sound Blaster is configured. x86_device_config() then took the Sound Blaster branch for every query and returned before the PS/2 mouse "buttons" override, so a selected IntelliMouse came up as a two-button mouse without wheel support. Start the sentinel at -1 and answer the mouse query before the Sound Blaster settings.

Found while porting the 86Box import to Amiberry (BlitterStudio/amiberry#2599), which has the same fix.

x86_global_settings is static and started at 0, and set_sb_emu() returns
before assigning it when no Sound Blaster is configured.
x86_device_config() then took the Sound Blaster branch for every query
and returned before the PS/2 mouse "buttons" override, so a selected
IntelliMouse came up as a two-button mouse without wheel support. Start
the sentinel at -1 and answer the mouse query before the Sound Blaster
settings.
@tonioni
tonioni merged commit b1d681d into tonioni:master Nov 3, 2026
3 checks passed
@midwan
midwan deleted the fix/86box-sb-config-sentinel branch November 3, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants